The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   Script Make NPC's disappear after certain flags + Can you have unlimited bag space? (https://www.pokecommunity.com/showthread.php?t=451090)

TheRealBothi May 17th, 2021 12:27 AM

Make NPC's disappear after certain flags + Can you have unlimited bag space?
 
Hey Guys!

How do I make NPC's disappear after a certain event / Flag? In my example after the third gym bade.

I came up with this script:

#dynamic 0x800000

#org @start
lock
faceplayer

checkflag 0x807
if 0x0 goto @YouCantPass
if 0x1 goto @t1

release
end

#org @YouCantPass
msgbox @t2 0x6
release
end

#org @t2
= You can't pass!

#org @t1
checkflag 0x1050
hidesprite 8
setflag 0x1050
release
end
-----------------------------------------------------

But this one only activates after talking to the NPC and I want it to activate right after beating the gym.

The second question is, if it's possible to do some hex editing for unlimited bag space ?

The Rom I am hacking is Pokemon Ruby.


Thanks so far!

Anon822 May 17th, 2021 2:14 AM

Quote:

Originally Posted by TheRealBothi (Post 10359152)
Hey Guys!
How do I make NPC's disappear after a certain event / Flag? In my example after the third gym bade.

Put the flag as the npc's "Person ID" in advance map and the npc won't spawn if the flag is set.


Quote:

Originally Posted by TheRealBothi (Post 10359152)
Hey Guys!
The second question is, if it's possible to do some hex editing for unlimited bag space ?

It's definitely possible to expand the bag but I don't think its possible to have unlimited space. I'm also not sure if there even is a bag expansion for ruby as most people hack either firered or emerald.

TheRealBothi May 17th, 2021 2:32 AM

Ah okay, that makes sense. Thank you!

Momoro May 29th, 2021 11:08 PM

Unlimited bag space is impossible. There's simply not enough space within the ROM to contain an infinite amount of different items- that would mean that the ROM file size would have to be of an infinite amount, e.x. ∞(infinite) MB, which is impossible.

...Now, expanding the bag to be bigger, rather than infinite, is possible- but it could be difficult.

As for the NPC script:

Have the sprite hidden, and set the Person ID to the desired flag. Then, when the flag is set, the NPC should appear.


All times are GMT -8. The time now is 9:16 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.