Brock through walls: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
>Torchickens
No edit summary
m (→‎Brock Fly: Capitalized stat names (Special and Attack))
Line 70: Line 70:
==Variants==
==Variants==
===Brock Fly===
===Brock Fly===
In order to execute Brock Through Walls, the invalid path needs to be long enough to overwrite at least the entire RAM region between $CCD3 and $CD3B. Most addresses in this region are temporary variables anyway; however, this region includes $CD2D (wEngagedTrainerClass) and $CD2E (wEngagedTrainerSet), which determines the species and level of the Pokémon encountered with the [[trainer escape glitch]] (normally the special stat and attack modifier of the last enemy Pokémon). Therefore, by doing a trainer escape, and performing this glitch before going back to the route, the player can set up a "special stat encounter" without needing to fight a Pokémon with the appropriate special stat and attack modifier. Notably, this allows encountering a Pokémon whose level is not in the 1~13 range (the valid range for the attack modifier byte).
In order to execute Brock Through Walls, the invalid path needs to be long enough to overwrite at least the entire RAM region between $CCD3 and $CD3B. Most addresses in this region are temporary variables anyway; however, this region includes $CD2D (wEngagedTrainerClass) and $CD2E (wEngagedTrainerSet), which determines the species and level of the Pokémon encountered with the [[trainer escape glitch]] (normally the Special stat and Attack modifier of the last enemy Pokémon). Therefore, by doing a trainer escape, and performing this glitch before going back to the route, the player can set up a "Special stat encounter" without needing to fight a Pokémon with the appropriate Special stat and Attack modifier. Notably, this allows encountering a Pokémon whose level is not in the 1~13 range (the valid range for the Attack modifier byte).


This variant is named "Brock Fly" because "Trainer Fly" is a more commonly known name for the trainer escape glitch, but of course other escape methods (Teleport, Dig/Escape Rope, death-warp) can also be used.
This variant is named "Brock Fly" because "Trainer Fly" is a more commonly known name for the trainer escape glitch, but of course other escape methods (Teleport, Dig/Escape Rope, death-warp) can also be used.