Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Pokémon hacking.
Acmlm's Board - I2 Archive - Pokémon hacking - Flags?
  
User name:
Password:
Reply:
 

UserPost
Totakeke
Posts: 30/73
You use flags like a variable, except flags are always either 1 or 0 (Yes, or No).

Let's say that you want to check if the player has a specific badge (Yes, badges are checked through flags).

checkflag 0x800D 'Check the value of that badge (1 = set, 0 = not set)
compare LASTRESULT 0x1 'See if it's set.
if 0x1 goto 0x[random offset] 'if it IS set, go here.
Thomas
Posts: 164/298
What kind of things can you edit with flags?
Totakeke
Posts: 29/73
"A variable or memory location that stores true-or-false, yes-or-no information"
Thomas
Posts: 162/298
What are flags?
Kyoufu Kawa
Posts: 1844/2481
No can do. Most flags are plot-specific and there's a lot of those. Good luck identifying and documenting them.

A small number, however, are system-specific and can, for example, enable Safari Mode and determine pause-menu content. The latter have been #defined for you.
VS90'
Posts: 15/17
Anybody explain me all the existing flags?
Acmlm's Board - I2 Archive - Pokémon hacking - Flags?


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.009 seconds.