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)
-   -   Other Question About Flags? (https://www.pokecommunity.com/showthread.php?t=350933)

RuFF June 21st, 2015 7:01 PM

Question About Flags?
 
I'm still confused about flags so Pls. don't get mad at me :)

Is it safe for me to useflags above 0x1000? I read it somewhere before that it is safe.

What will happen if I use some used vars and flags? Well I'm not gonna use some old scripts anyway.

Does vars resets after the script? Or it will stay the same until another script change it?

Joexv June 21st, 2015 7:13 PM

There are a list of safe flags and vars HERE.
From what I've been told and how I hack, is I don't use any flags above 0x500 or any vars above 0x5000.

There are some vars that reset on every map refresh(warping) and those are 0x4000-0x4011
There are also the 0x8000-0x800X vars which I believe are also reset on every map refresh, but those are used for ASM routines and lastresult/lasttalked, so you shouldn't just be using them for level scripts and such.

RuFF June 21st, 2015 8:33 PM

Quote:

Originally Posted by joexv (Post 8809502)
There are a list of safe flags and vars HERE.
From what I've been told and how I hack, is I don't use any flags above 0x500 or any vars above 0x5000.

There are some vars that reset on every map refresh(warping) and those are 0x4000-0x4011
There are also the 0x8000-0x800X vars which I believe are also reset on every map refresh, but those are used for ASM routines and lastresult/lasttalked, so you shouldn't just be using them for level scripts and such.

Thanks That's very helpful.

I actually use flag from 0x1000.
And I don't get any problems. (And I'm hoping that I don't get any Problems).

I guess I should use 200-2FF flags on my next hack..

Thanks joexv :).

chrunch June 22nd, 2015 12:17 AM

Quote:

Originally Posted by quil09 (Post 8809618)
Thanks That's very helpful.

I actually use flag from 0x1000.
And I don't get any problems. (And I'm hoping that I don't get any Problems).

I guess I should use 200-2FF flags on my next hack..

Thanks joexv :).

There will inevitably be problems as you're overwriting memory that you're not meant to. Probably bad eggs in the PC, maybe something else. You really should change all the flags you've used, it might be a bit of work but its much better in the long run.

RuFF June 22nd, 2015 1:15 AM

I already made 70% of progress on my hack and even if I want to change it. It would probably take most of my time changing 151 (1100 - 1197) flags from my hack so I don't have a choice but to hope that nothing bad will happens to the pokemon from the pc or the game itself..


All times are GMT -8. The time now is 2:31 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.