Flag: Difference between revisions

Jump to navigation Jump to search
47 bytes removed ,  13 years ago
no edit summary
>Torchickens
(New page: {{wikipedia2|Flag (computing)}} A '''flag''', also referred to as a switch, is any value for an address or multiple addresses which has an associated meaning such that it will trigger an ...)
 
>Torchickens
No edit summary
Line 1:
{{wikipedia2|Flag (computing)}}
 
A '''flag''', also referred to as a switch, is any value for an address or multiple addresses which has an associated meaning such that it will trigger an event depending on theits value or values last read from the software or hardware's RAM[[identifier]].
 
In the Pokémon games, flags often exist in addresses as simple one-bit (2^1) integers. For example, in [[bp:Pokémon Diamond and Pearl|Pokémon Diamond and Pearl]], in the downstairs area of a Pokémon Center a value of 0 in a single byte denotes that the player has not received the Pal Pad yet, whilst a value of 1 denotes that the player has, so after the flag is checked to a value of 1 the associated event with a value of 0 (i.e. the assistant walking out and giving the player a Pal Pad) will not occur. Oversights by the game developers regarding an event which has not a flag required to start another intended event are often one of the main causes of glitches, for example the [[Tower Tycoon event skip]] glitch in Pokémon Diamond and Pearl is caused by choosing the 21st Battle Tower match by choosing to rest and then selecting the option 'NO', which would start a battle without setting the flag making another trainer appear instead of the [[bp:Tower Tycoon|Tower Tycoon]].
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu