Retire glitch
Bulbapedia also has an article about Retire glitch. |
The Retire glitch (also known as the Pal Park Retire glitch) is a glitch derivative of Tweaking. It was documented by Cryo on January 10, 2017.
By entering the void, then traveling through RAM until you enter Map 0xFB (251) Pal Park, a mapscript will run. The player is granted a Menu, which has the RETIRE function on it, similarly to the Menu granted in the Great Marsch.
It also sets a flag that accounts for the Encounters, making sure you can only encounter wild Pokémon (on grasstiles, watertiles, cavetiles, pondtiles) that you have transfered from gen 3. If none are present, you cannot encounter wild Pokémon. This does not apply to static battles (Drifloon, legendaries, berry trees).
The RETIRE glitch occurs when pressing the RETIRE function.
It first checks for flag 0x967, a flag set when entering the Great Marsch, if set, it runs script 0x2275 and asks to leave the Safari Zone.
Otherwise, it runs the 4th script in runtime. In normal circumstances it cannot be used outside of Pal Park's Map, where it would be:
Script 4: Fanfare 1500 Lockall Message 8 "Would you like to retire?" Yesnobox 32780 CloseMsgOnKeyPress If 32780 0 CheckLR 1 func_2 Releaseall End
with func_2 being
Func 2: Setvar 16627 2 Releaseall Goto func_1 End
And func_1 being
Func 1: StopGreatMarsh 1 Fadescreen 6 1 0 0 Resetscreen Warp 393 0 7 7 1 Fadescreen 6 1 1 0 Resetscreen Killscript
In this case, pressing YES would warp you to Map 0x189 (393).
Once out of bounds, you can use it in any map you'd like, running 4th script in runtime in any Map.
A year later an alternative was found by glitchologist Aera, called alt-RETIRE. By transfering 6 Pokémon from gen 3 and being in Pal Park mode, then catching all 6, the game would run 3rd script un runtime.
Script 3: Fanfare 1500 Lockall Fanfare 1521 Setvarhero 0 Message 5 "Ding-dong! Congratulations!
\v0103\z0000 has successfully caught the stocked Pokémon!" PlaySound 1002 Soundfr 1158 Fadedef CloseMsgOnKeyPress Releaseall Setvar 16627 1 Goto func_1 End
with func_1 (still) being
FUNCTIONS: Func 1: StopGreatMarsh 1 Fadescreen 6 1 0 0 Resetscreen Warp 393 0 7 7 1 Fadescreen 6 1 1 0 Resetscreen Killscript
Since the flag set by the mapscript made the game ignore all encountertables to only encounter the transfered Pokémon, this meant you could call 3rd script in runtime too. At the time, it wasn't quite that useful since it was limited to areas where we could find grass/water, and a small area in the void called 'Black Sinnoh', where these tiles are naturally read from RAM.
A year later a glitchologist RETIRE found a way to manipulate tiles in the void, allowing to write any tile by chaining gfx set changes (by opening menu's in specific maps) and for specific tiles manipulating ASLR too. Now you could call 3rd script in runtime in any map.
The glitch is most known for its use in the Hall of Origin, which allows for the player to battle Arceus.
This article or section is a stub. You can help Glitch City Wiki by expanding it. |