Jump to content

Pokémon Blue any% No Save Corruption speedrun route: Difference between revisions

→‎Glitch meta-map script activation: Linked to corresponding general descriptions of glitch meta-map script effects.
>Bbbbbbbbba
>Bbbbbbbbba
(→‎Glitch meta-map script activation: Linked to corresponding general descriptions of glitch meta-map script effects.)
Line 35:
** '''The Viridian Forest meta-map script ID is now 6, which is a "walking lag" script.'''
 
Meta-map script ID 4 in Viridian Forest is a typical case of [[Glitch meta-map script activation#Repeated trainer fights|"trainer text script as map script"]]. It points to ViridianForestText2:
 
ViridianForestText2:
Line 61:
The event flag points to "bit 8 of $5142" (i.e. bit 0 of $5143) on bank 3. Since the flag is not set, another fight begins, and the meta-map script ID is advanced by 2, ending up at 6.
 
Meta-map script ID 6 points to ViridianForestText4, which is very similar, except that $5142 (ViridianForestTrainerHeader0) changes to $515A (ViridianForestTrainerHeader2), which results in the "trainer beaten" event flag being set. Therefore it's a [[Glitch meta-map script activation#Triggering.22Walking mechanismlag.22 with the Trainer escape glitcheffect|"walking lag" script]].
 
==Arbitrary code execution==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.