Jump to content

Trainer escape glitch: Difference between revisions

m (Text replacement - "Category:Speed runner glitches" to "Category:Speedrunner glitches")
 
(7 intermediate revisions by 3 users not shown)
Line 72:
This trick can be performed after completing one of the Trainer escape methods above in the '[[Trainer escape glitch#Initial steps of the glitch|initial steps of the glitch]]' section and may temporarily remove the ability to open the start menu.
 
There are two obstacles that usually need to be cleared before a Special stat encounter could work, [httphttps://forumsarchives.glitchcity.info/index.php?topic=forums/board-107/thread-7256/page-0.msg198353html#msg198353 as documented by Háčky].
 
*Bit 0 of $CD60 needs to be unset. This bit is set when a Trainer spots the player and when it is set disables the Start menu, and partially disables the A and B buttons except for certain actions like using a PC. There is no known method to clear the following obstacle without clearing this one either beforehand or in the process (except by cheating or utilizing other glitches).
Line 261:
 
If the equivalent text box brought up an undefeated Trainer, it may cause the [[walking lag glitch]] (see the article for steps).
 
===Viridian Forest arbitrary text box===
Exclusively to Yellow, the Town Map in the house with Speary the Spearow (predefined text box 0x41) will load an arbitrary text box from C331 in RAM. This is the x-position of OAM entry 13 (decimal) (FE31). OAM entry 13 will vary, sometimes depending on which NPCs are visible on the screen (if not all NPCs are present), it will correspond to the x-position of the left-half of the note on the wall about Speary instead. It is possible to manipulate C331 to values which are not actually on the screen. i.e. when Speary walks left off the screen, the game may load a very high x-position for it into memory.
 
In speedruns, this is manipulated to be 0xFE, because the starting 0xFE is a text command to open a Poké Mart; which can then be used for further glitches as part of the process to warp to the Hall of Fame (such as buffer overflow of the mart due to late 0xFF byte or the use of glitch items such as [[ItemDex/Y:089|4F]]). The tile number of the NPC corresponds with the number of items in the Mart, and the rest of the OAM data which follow (including for entries 14 and onward) control individual items which appear in the Mart.
 
The run usually includes a lot of luck manipulation. The [[Pokémon Yellow reverse badge acquisition no underflow route]] article also offers the following backup strategies:
 
<pre>
There are two backup manipulation sequences, to be used when the NPCs move in unexpected ways when the player enters the house, indicating an unfavorable IGT. The player needs to load the same save file, but walk to the house in different ways:
If the girl walked up and the bird walked right, do U11, R2, U3, with A presses at U8/U10/R1.
If the girl walked down and the bird walked left, do U13, R2, U1, with A presses at U1/U9/R1.
(For comparison, in the standard manipulation, do U13, R2, U1, with A presses at U8/U10/R1. Ideally the girl should walk up and the bird should walk left.)
</pre>
 
===Route 11 glitch Poké Mart===
Line 287 ⟶ 301:
 
==Trade NPC Pokémon and resulting Pokémon==
For some reason, whenWhen you talk to a trade NPC after enabling a potential Special stat encounter (so an instant encounter when you return to the route you escaped from), it will change the Pokémon you encounter to be no longer based on the Special stat, but rather, [httphttps://forums.glitchcity.info/index.php?topic=6618.0 the identifiers of the fifth and sixth characters (including end name markers) of the trade Pokémon's nickname] (CD2D and CD2E) (in fact, CD2D is also wEngagedTrainerClass and CD2E is wEngagedTrainerSet), but encountering a wild Pokémon or Trainer afterwards will 'overwrite' the Pokémon to be based on the enemy's Special stat again.
 
This trick does not work in the Japanese Pokémon Red/Green/Blue.
Line 294 ⟶ 308:
 
The fifth character controls the species, and the sixth character controls the level. It is possible to obtain certain Pokémon over level 100 this way. Below are the possible encounters.
 
To get other encounters, the player may also be able to modify CD2D and CD2E with [[Brock through walls#Brock Fly|Brock Fly]].
 
===Red/Blue yields===
Line 316 ⟶ 332:
 
==Explanation==
Specifically for Special stat encounter, the disabled Start menu, and prevented battles, [https://forumsarchives.glitchcity.info/index.php?topic=forums/board-107/thread-7256/page-0.msg198353html#msg198344 Háčky provided the following explanations].
 
"When a Trainer spots you, the game loads the Trainer class into $CD2D and team number into $CD2E, and sets a map script that will have the Trainer give his/her dialogue and start the battle. When you leave the map, the current script for that map is saved, and will be run again when you re-enter that map.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.