Jump to content

Dokokashira door glitch: Difference between revisions

(Adjust the article to acknowledge D335 is the Echo RAM F335.)
Line 112:
Some of these Pokémon may be poisoned, so whenever the player walks four steps, the game will likely decrease a certain value following the sixth Pokémon data by 1, thinking it was a Pokémon's hitpoints data, but it is the hitpoints of no valid Pokémon. The HP reduction cannot occur where there is an FF, and the process only affects values before the first FF from D124 (the second Pokémon).
 
When performing the glitch just after obtaining Oak's Parcel from a newly made save file, there will be many non FF values past the address D124, and the first FF value will be located much further on from that address. One of these addresses is F335, which is reduced by 1 every four steps due to the '199th Pokémon' being poisoned, and because there was no FF before D1EA and after D124. F335 (Echo RAM for D335) stores the map that the player will warp to when they enter a 'dokokashira warp' (see the [[Dokokashira door glitch#Planning a path|planning a path]] section for more information).
 
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). *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. From 0xFF it will take 255*4 steps to become 0x00, after which F334 is decremented by 1 and this process of having to walk 255*4 steps to reach 0x00 repeats, until F334 becomes 0x00 as well.
*There must be no 0xFF before D1EA and after D124.
 
F335 (Echo RAM for D335) stores the map that the player will warp to when they enter a 'dokokashira warp' (see the [[Dokokashira door glitch#Planning a path|planning a path]] section for more information). F334 is the index number of the entrance point ('index') of the map, for instance a value of 0x00 is the left-side of the carpet in Blue's house, and 0x01 is the right-side of the carpet.
 
On a later save file that has made certain progress, it may be impossible to pull off the warping around part of the glitch. This is because there may be addresses in the memory preceding D1EA which are FF.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.