Brock through walls: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
>Bbbbbbbbba
(Added Brock Through Walls from a wall. Also $CD38 -> $CD3B (facepalm).)
>Bbbbbbbbba
(→‎Variants: Added Brock Fly.)
Line 69: Line 69:


==Variants==
==Variants==
===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).

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.

{{YouTube|9lMDWy2d6ys|krazyd4n}}

===Brock Through Walls from a wall===
===Brock Through Walls from a wall===
It is possible to trigger this glitch from the ''top'' of the Youngster, as long as the player can reach there using another glitch (e.g. [[Rival's effect]]). The principle of setup is similar, but instead of "0x10 0x24", the player needs to set up "0x0F 0x23" at an appropriate address, since that is the coordinates of the tile above the Youngster.
It is possible to trigger this glitch from the ''top'' of the Youngster, as long as the player can reach there using another glitch (e.g. [[Rival's effect]]). The principle of setup is similar, but instead of "0x10 0x24", the player needs to set up "0x0F 0x23" at an appropriate address, since that is the coordinates of the tile above the Youngster.