Anonymous user
List of maps by index number (Generation I): Difference between revisions
List of maps by index number (Generation I) (view source)
Revision as of 14:38, 7 July 2022
, 1 year agono edit summary
mNo edit summary |
No edit summary |
||
Line 526:
The coordinates typically pertain to the exit mats in buildings when the player bumps into the wall to leave the map (the way for instance, leaving a Pokémon Center returns the player to the 'last town'). The exit index is a single byte as an index number.
When the game finds it, it is copied into wDestinationWarpID (D42F in R/B and D42E in Y), as well as hWarpDestinationMap (FF8B).
For example, exit index 0 can be seen as 'position to place the player in the new map #0', index 1 as 'position to place the player in the new map #1' and so on. This is the reason why different exit warps each make the player step down from different buildings, and the cause of [[Safari Zone exit glitch]] when wLastMap is no longer Fuchsia City and wWarpEntries still pertains to the Safari Zone gate.
|