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

Jump to navigation Jump to search
Content added Content deleted
>Bbbbbbbbba
>Bbbbbbbbba
(→‎Glitch meta-map script activation: Linked to corresponding general descriptions of glitch meta-map script effects.)
Line 35: Line 35:
** '''The Viridian Forest meta-map script ID is now 6, which is a "walking lag" script.'''
** '''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 "trainer text script as map script". It points to ViridianForestText2:
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:
ViridianForestText2:
Line 61: 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.
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 mechanism with the Trainer escape glitch|"walking lag" script]].
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#.22Walking lag.22 effect|"walking lag" script]].


==Arbitrary code execution==
==Arbitrary code execution==