Pokémon Crystal any% speedrun route: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
>Sherkel
mNo edit summary
>Bbbbbbbbba
(→‎Arbitrary code execution: Referring to Instant victory glitch (Generation II) for what happens at the very end.)
Line 142: Line 142:
* Talk to Red.
* Talk to Red.
** Normally, Red only appears in Mt. Silver after the Hall of Fame sequence, but setting [wEventFlags + 236] = 0x00 resets the appropriate event flag and lets him appear.
** Normally, Red only appears in Mt. Silver after the Hall of Fame sequence, but setting [wEventFlags + 236] = 0x00 resets the appropriate event flag and lets him appear.
** At this point, we have no Pokémon in our party (more precisely, our party count is 0). In the StartBattle Function, there is a check to prevent the player from entering a battle without Pokémon. The overworld script would act as if the player won. In the case of Red, this means warping to the credit.
** At this point, we have no Pokémon in our party (more precisely, our party count is 0), so the [[instant victory glitch (Generation II)|"instant victory effect"]] is triggered. Since the player never entered a battle since loading the save file, the overworld script acts as if the player won. In the case of Red, this means going to the credit roll.


{{Youtube|qaVUIAgsLpY|Pokeguy84}}
{{Youtube|qaVUIAgsLpY|Pokeguy84}}