Expanded party/RGBYJP: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
Line 1,059: Line 1,059:
*The Pokémon's current HP address is greater than 0.
*The Pokémon's current HP address is greater than 0.
**The current HP addresses are located +1 and +2 (because current HP is stored in two bytes, from 0-65535) from the start of any slot Pokémon's main structure data.
**The current HP addresses are located +1 and +2 (because current HP is stored in two bytes, from 0-65535) from the start of any slot Pokémon's main structure data.
***Typically F335 (Echo RAM for D335) from party Pokémon 199 for the 'door warp' effect. If the current HP is 0, the dokokashira warp won't change.
***Typically F335 (Echo RAM for D335) from party Pokémon 199 for the 'door warp' effect. If the current HP is equal to 0, the dokokashira warp won't change; it will remain at Pallet Town. In fact, the value of D335 ''is'' the warp destination. If D334 is greater than 0, there is an exception to the rule; as a two-byte value this means for every 256 steps D334 is reduced by 1 and D335 becomes 0xFF - if this is achieved higher map IDs (such as Lorelei's Pokémon League room) are possible.
*There should be no 0xFF bytes before the target Pokémon (for the typical 'from a new game' method, an exception is the initial misplaced 0xFF terminator in slot 1).
*There should be no 0xFF bytes before the target Pokémon (for the typical 'from a new game' method, an exception is the initial misplaced 0xFF terminator in slot 1).