Dokokashira door glitch: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
>Torchickens
>Torchickens
Line 30: Line 30:


==Related mechanics and route calculation==
==Related mechanics and route calculation==
After triggering the glitch, the next warp location for entrances, where in which case the associated map number is affected by the doko kashira door glitch is set to a constant, depending on the map location that the player was when he or she exploited the glitch. This value decreases by 1 every 4 steps and changes the value of map number address D2DD to what was stored (which is representable by k-s/4 where is a 'steps taken value', though 's' is not an internal mechanic) when the player is warped from such an entrance. The 'warp constant' "k", is refreshed by certain entrances which don't warp the player to the wrong location, where when entered or exited the amount of steps taken 's' is reset to 0.
After triggering the glitch, the next warp location for entrances, where in which case the associated map number is affected by the doko kashira door glitch is set to a constant, depending on the map location that the player was when he or she exploited the glitch. This value decreases by 1 every 4 steps and changes the value of map number address D2DD to what was stored (which is representable by k-s/4 where 's' is a 'steps taken value', though 's' is not an internal mechanic) when the player is warped from such an entrance. The 'warp constant' "k", is refreshed by certain entrances which don't warp the player to the wrong location, where when entered or exited the amount of steps taken 's' is reset to 0.


If k-s/4 falls below 0, the warp location the player would be taken to remains at Pallet Town and does not loop back to value 255 if an additional four steps are taken.
If k-s/4 falls below 0, the warp location the player would be taken to remains at Pallet Town and does not loop back to value 255 if an additional four steps are taken.