Jump to content

Dokokashira door glitch: Difference between revisions

Line 116:
In order to alter the wrong warps every four steps, three criteria are necessary.
 
*The 199th Pokémon must be poisoned (F337 (Echo RAM for D337) must have bit 0x3 set; as it does for the 0x0C value loaded into D337 upon entering Pallet Town). Note that even though this Pokémon is in fact poisoned, the poison screen transition/sound effect may not occur.
*F334/F335 (D334/F335) (the 199th Pokémon's current HP; 0 to 65535) must first be a 16-bit value greater than 0 (otherwise the wrong warp is always Pallet Town because poison does not underflow a fainted Pokémon's HP). Note that even though this Pokémon is in fact poisoned, the poison screen transition/sound effect may not occur.
**Additionally, if it is possible to adjust F334 to a value over 0 (so F334-F335 represents 256*n as the HP where n>0, it is possible to access relatively high warp IDs as in this case, F335 will wrap around from 0x00 (Pallet Town) to 0xFF ([[AreaDexJP/RG:255|glitch map 255]]) and below whenever F334 is decremented (a loss of 256 HP). From 0xFF it will take 255*4 steps to become 0x00, after which taking another four steps decrements F334 by 1 and sets F335 to 0xFF. This process of having to walk 256*4 steps to underflow from 0x00 from 0xFF repeats, until F334 becomes 0x00 as well - from there on the wrong warp is always Pallet Town as above.
*There must be no 0xFF before D1EA and after D124.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.