Trainer escape glitch: Difference between revisions
→Viridian Forest arbitrary text box
>Torchickens No edit summary |
|||
(39 intermediate revisions by 8 users not shown) | |||
Line 1:
{{Major glitches}}
{{Bulbapedia2|Mew glitch
{{PRAMA|ditto-trick}}
The '''Trainer escape glitch''', also known as the '''Trainer-Fly glitch''' or '''
It is most commonly used to force an encounter with a Pokémon or Trainer based on the last Special stat of the opponent in memory.
In Japan, the glitch is often referred to as '''fifth's method''' (Japanese: fifth法), named after "fifthヽ(´ー`)ノ◆Fi3PJTZKLQ" who found it and posted about it on 2ch. It has also been referred to as '''Special encounter glitch''' (Japanese: とくしゅエンカウント).
==Long-range Trainer==
A long-range Trainer is a Trainer
The player doesn't actually have to use a long-range Trainer
1. The player can exploit the [[Rival's effect]] caused by certain glitch items to allow the player to escape from not just long-range Trainers.<br>
Line 16 ⟶ 17:
==Initial steps of the glitch==
Before performing this glitch,
Additionally, at least one available Trainer that walks up to you from a route other than the long-range Trainer is recommended to make this glitch desirable, but this is not needed if you have access to the Elite Four and can beat them (see the [[Trainer-Fly glitch#Unlimited Trainer escape glitch|unlimited Trainer escape glitch]] section for more information).
Line 24 ⟶ 25:
[[File:Route 24 LRT.png]][[File:Route 8 LRT.png]]
You will need a Pokémon with Fly, Teleport, Dig, or an Escape Rope if it is possible to use it in the place where the Trainer is
Once you've chosen a long
===Long-range Trainer method===
The long-range Trainer method involves opening the Start menu while walking up to a Trainer who is initially off the screen (known as a "long-range Trainer") but is forced on the screen after the Start menu was opened. The player then uses Fly, Teleport, or an Escape Rope to escape from the original location before the battle begins.
Steps:
#Make it so that the long-range Trainer is one tile off the screen,
#While
#Leave the area using Fly, Teleport, Dig, or an Escape Rope
===Death-warp===
The death-warp method (documented by Vimgur) is notable for being a method in which the player's Start menu isn't disabled and the A/B buttons aren't partially disabled. This enables a Special stat encounter without the player having to fight another Trainer or change boxes (see the [[:#Special stat encounter|relevant section]]),
The death-warp involves the player blacking out in the grass or in a cave within a Trainer's vision. This can cause the "!" mark to appear but the battle will never begin.
Steps:
#Have the black-out location set to a place close to a death-warp Trainer by healing at a Pokémon Center close to the death-warp Trainer prior to the glitch (optional
#Enter a location where there is a Trainer in the tall grass or a cave which the player hasn't defeated yet. Examples include the last Trainer in Viridian Forest on the way to Pewter City, two Bug Catchers on Route 6, as well as two Youngsters and a Gambler on Route 11.
#Save the game one step out of the Trainer's vision and step into the tall grass, aiming to get an encounter. If you do not get an encounter, reset the game and repeat this step until you do.
Sometimes (specifically via the Fossil Pokémaniac in Mt. Moon), a sub-glitch of the death-warp known as the delayed battle glitch can be activated if the player immediately returns to the original Trainer. It causes the battle to restart again immediately after blacking out.
===Rival's effect method===
Line 50 ⟶ 54:
#Move left/right or north/south so that you're in that Trainer's field of vision. If you can't, try another position or another Trainer.
#Do not move, then Fly, Teleport, Dig, or Escape Rope away. Your destination to make this glitch desirable should be where a Trainer that walks up to you is within reasonable walking distance.
===Technical explanation===
The main purpose of the initial steps of the glitch is to put the [[meta-map script]] ID for the map the player escapes from into an inconsistent state. Maps with trainer battles usually have at least three pieces of meta-map scripts:
* CheckFightingMapTrainers
* DisplayEnemyTrainerTextAndStartBattle
* EndTrainerBattle
(Sometimes the actual meta-map scripts may be different, but will usually call those functions before or after handling some special cases.)
Normally, the meta-map script ID will point to CheckFightingMapTrainers. It is changed to DisplayEnemyTrainerTextAndStartBattle when the "!" mark appears on the trainer, at which point the player's overworld controls should have already been disabled. However:
* After the player chooses an escape item or move from the Start menu, the meta-map script is run for one more frame. If a trainer has just been loaded, they will notice the player on that frame, advancing the meta-map script ID just before the player warps away. <!-- TODO: The exact timing of things. -->
* If the player blacks out in battle, the meta-map script is run for one more frame, which usually either is EndTrainerBattle (because the player blacked out in a trainer battle) and resets the meta-map script ID, or does nothing. However, in the death-warp method, the trainer will notice the player on that frame, advancing the meta-map script ID just before the player warps away.
In either case, the meta-map script ID is left pointing to DisplayEnemyTrainerTextAndStartBattle, setting up an encounter for when the player returns to the route. But since that encounter doesn't immediately happen after CheckFightingMapTrainers sets the relevant data, those data can be overwritten, resulting in an encounter that is controllable to some extent.
==Special stat encounter==
Line 56 ⟶ 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
*Bit 0 of $CD60
*Bit 0 of $D730
After completing the long-range Trainer or Rival's effect method, there are
1. Encounter a Trainer that
* If you don't let them walk at least one step to you, the game will freeze, because bit 0 of $D730 makes the game think the trainer should be walking up to you anyway.
2. Defeat the Elite Four and watch the end of the credits. After the credits finish and the player reloads the save file, the foe's Special stat in memory will become zero. This does not result in a battle with an [[GlitchDex/RB:000|'M (00)]] or [[GlitchDex/Y:000|3TrainerPoké₽]], so if the player wants to encounter a Pokémon they must have last encountered a Pokémon (either via a wild battle or Trainer) with a Special stat which is not 0.<br>▼
▲
4. Change boxes and reset the game, then move a boulder with Strength, such as the one in the warden's house in Fuchsia City. Pushing the boulder will unset bit $D730.▼
* Be guided by the Pewter Museum NPC in Pewter City.
▲
In the [[:#Death-warp|death-warp trick]], a Special stat encounter will be enabled immediately after blacking out to the Trainer if the Trainer didn't have to walk up to the player, or after being guided by the Pewter Museum NPC/pushing a Strength boulder if the Trainer did have to walk up to the player.
Line 116 ⟶ 134:
===Ditto trick===
The '''Ditto trick''' (also known as 'Mew glitch method #4', even though Mew is not the only Pokémon that can be encountered with it) is one of the most useful glitches in the first generation of the main series Pokémon games, and it can be used to obtain non-freezing glitch Pokémon with index numbers greater than hex:00 but lower than hex:C8 (dec:200), because index numbers that are 200 or greater bring up Trainers (see the [[Trainer escape glitch#Encountering Trainers|Encountering Trainers]] section for more information).
This glitch takes advantage of Ditto's Transform instead of requiring that specific Trainers be encountered.
====Procedure====
For this glitch you'll need to prepare a Pokémon with the Special stat modulo 256 of the Pokémon or Trainer you want (see [[the
Modulo 256 means that the index numbers loop back to 0 after 255, so a Special stat of 257 would give Rhydon, the Pokémon with an index number of 01, and so forth.
You cannot use the glitch to encounter [[GlitchDex/RB:000|'M (00)]] or [[GlitchDex/Y:000|
After following one of the methods in the above "[[Trainer escape glitch#Initial steps of the glitch|initial steps of the glitch]]" method except for the Viridian Forest blackout method and then following most of the steps (returning to the route you flew away from is excluded for the moment) described in the "[[Trainer escape glitch#Special stat encounter|Special stat encounter]]" method, you should go encounter Ditto and have it transform into the Pokémon with your desired Special stat.
Line 134 ⟶ 152:
===Encountering Trainers===
As mentioned above, trying to encounter a Pokémon with an index number (Special stat modulo 256) greater than 199 will bring up a Trainer. See [[the
The attack stage of the Ditto equates to the roster number of the Trainer you encounter. For example, if one wanted to encounter Prof. Oak's first roster, they would need the Ditto to transform into a Pokémon with a Special stat of 226 and then use Growl six times. To encounter his second roster, the player would have to use Growl five times, and so forth. Prof. Oak's fourth and beyond rosters are rosters from later Trainer classes, firstly, the Scientist.
Line 153 ⟶ 171:
This [[:#Death-warp|death-warp]] trick is only possible if you haven't beaten the final Bug Catcher in Viridian Forest.
It is the only known way to get level 100 Pokémon before Brock in Pokémon Red and Blue without trading, grinding for an extremely long time, or skipping Brock (see [[skip Pewter Gym]]), because a long-range Trainer in
Steps:
# Have your black out location set to Viridian City or Pallet Town. If you need to, heal your Pokémon at the Pokémon Center/your house to set the black out location.
# Get your Pokémon poisoned by a Weedle, but have enough health to be able to get to the Trainer as shown in the picture below. (Having your Pokémon poisoned isn't necessary for the glitch, but will increase the success rate, because you need to black out from a wild encounter later, and wild Pokémon encountered in Viridian Forest may not have an offensive move.)
# Save the game a tile away south of him, and hope that you encounter a wild Pokémon in his field of vision. If you don't succeed, reset the game and try again.
# Black out from the encounter.
#
After performing the steps above, the Special stat encounter or [[Trainer escape glitch#Text box ID matching|text box ID matching]] (described below) part of the glitch will be activated for a level 1 wild Pokémon. Since Pokémon in wild encounters have random DVs the player will not necessarily find a wild medium-slow growth Pokémon, however Blue's second Pokémon in the first Route 22 battle will either give Gengar or Nidoqueen (both medium-slow growth rate Pokémon), depending on which starter the player chose.{{clarify}}
[[File:
{{Youtube|r-aWS--eVec|v0id19}}
Line 176 ⟶ 195:
#Purchase an Escape Rope at Pewter City's Poké Mart, and optionally Potions to survive a level 9 Diglett.
#Heal at the Pewter City Pokémon Center and leave the Jr. Trainer♂ in Brock's gym as an available Trainer.
#Go back to the long-range Trainer in Viridian Forest and escape from them using an Escape Rope (see [[:#long-range Trainer method|long
#Battle the Jr. Trainer♂ in Brock's gym and use Growl six times on his level 9 Diglett, then black out to him without defeating the Diglett.
#Return to
{{Youtube|zFDy7lPdCz8|SpeeedyGaming}}
===Going up and down the stairs infinitely===
{{main|Going up and down the stairs infinitely glitch}}
This glitch was documented by LanceAndMissingno. The glitch occurs with Special stat encounter message boxes (and possibly other text boxes) for when the player enters a map on the same tile as a staircase. This causes the player to automatically go up and down the stairs infinitely.
====YouTube video====
{{YouTube|GJRSZg3-40w|ChickasaurusGL}}
===Removing Snorlax===
Line 187 ⟶ 213:
See the main article for more information.
===Stopping spinning tiles from working===
This effect was documented by LanceAndMissingNo. If the player uses the Trainer escape glitch on a floor where there are spinning tiles, the spinning tiles will stop working, allowing you to walk around the floor by yourself.
{{Youtube|8mHWympen_s|LanceAndMissingNo.}}
===Encounter as a Pokémon Tower Ghost===
If the encounter is set up in Pokémon Tower and the player doesn't own a Silph Scope, it will appear as a Ghost (provided that it is not a Trainer).
This technique has a number of applications over a normal encounter; for example [[Pokédex flags]] will still be set, so the usually unstable MissingNo. in English Yellow will enable item duplication with no involvement of its unstable sprite. Furthermore, if the [[expanded inventory]] is used to change item 33 (the current map (D35E/D)) to a non-Pokémon Tower map, the glitch Pokémon can be captured.
The glitch sprite can be reenabled if the player performs [[See a Ghost without a Silph Scope|the summary glitch to see a Ghost without a Silph Scope]], and for [[bad sprite]]s, memory corruption will take place again; such as sound bank corruption for Yellow MissingNo.
==Infinite Trainer escape glitch==
If you lose to the Trainer you battle after flying away, that Trainer will not be used up, and neither will
If you have no available Trainers that can walk up to you, the player can change boxes after flying away, reset the game, and then defeat the Elite Four and Blue. Then, the player can encounter the Ditto and get the Pokémon they want. Encountering no Pokémon after the player is sent back to Pallet Town will not let the player encounter any Pokémon; the start menu will pop up if it was the last message box, but no Pokémon will appear.
===Trainerless method===
This method can be pulled off without any Trainer at all and on
Requirements :
Line 202 ⟶ 242:
For the method on how to obtain a stack of 255 items, see [[item stack duplication glitch#Requirements|this article]].
WARNING
Steps :
# Deposit the 255 items in your PC.
# Have your first PC slots as follows
# Toss
# Swap item slots 1 and 2 twice.
# Item 1's quantity should be 0.
# WARNING
# Scroll to item number 100, which should be "j." x00 ("x." x00 in Yellow).
# Toss 255 of it to turn it into "j." x01 ("x." x01 in Yellow).
# Perform the glitch normally using the Mew
==Text box ID matching==
Line 221 ⟶ 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 229 ⟶ 283:
===Sea Route 21 arbitrary text box===
{{main|Sea Route 21
Loading the hex:44 text box on Route 21 (via the shelves of Pokémon goods in Cinnabar Poké Mart) executes arbitrary text code from D2C3 in WRAM (the fifth character of the second Pokémon's nickname). This can be manipulated to run arbitrary code; for example with [[Super Glitch]] and the [[expanded party]] one can convert items in the inventory into Pokémon nicknames and abuse this to obtain Mew as a gift Pokémon via the 08 text function (run ASM following the 08). This trick was documented by Torchickens.
==Glitch meta-map script activation==
▲==Walking lag glitch==
{{main|
It may be caused by text box matching dialog for an undefeated Trainer and defeating them, or the following method:
Line 242 ⟶ 296:
2. Change boxes and reset the game.
3. Return to the original route where the player flew away and defeat any
Ultimately it can also be used as a setup for [[arbitrary code execution]].
==Trade NPC Pokémon and resulting Pokémon==
This trick does not work in the Japanese Pokémon Red/Green/Blue.
Line 252 ⟶ 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 273 ⟶ 331:
#Cinnabar Lab - Kangaskhan for Muk (STICKY): Level 152 Kingler
==Explanation==
Specifically for Special stat encounter, the disabled Start menu, and prevented battles, [https://archives.glitchcity.info/forums/board-107/thread-7256/page-0.html#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.
In battle, $CD0F–CD1F are used to store the stats and stat modifiers of your active Pokémon, and $CD23–CD33 are used for the enemy Pokémon. This data consists of the Pokémon’s level and unmodified stats (HP, Attack, Defense, Speed, Special), followed by the modifier stages for Attack, Defense, Speed, Special, Accuracy, and Evasion. Thus, $CD2D is the lower byte (big-endian) of the enemy’s Special stat, and $CD2E is its Attack modifier. When you return to the map where you began the glitch, the map script will read these values and start a battle against whatever Pokémon or Trainer they indicate."
; and
"Bit 0 of $CD60 is set when the Trainer spots you, and disables the Start menu and so on. It’s cleared when you win a Trainer battle, when you black out (either in- or out-of-battle), or when you save and reset.
Bit 0 of $D730 is set when an NPC starts walking, and is cleared when they’re done walking. When a Trainer spots you, the battle won’t start until this is cleared, though you can still battle Trainers by talking to them (once you can talk to them, by clearing $CD60). This is why it’s necessary to fight another Trainer who can walk up to you, or to challenge the Elite Four, which clears this flag when Prof. Oak is done walking in the ending cutscene.
Actually, it seems there’s a way to make this glitch work without fighting a Trainer at all: after using the PC to save the game and reset (as in the Elite Four method, clearing $CD60), fly to Pewter City and ask the guy next to the Poké Mart to escort you to the museum. That walking NPC will clear $D730 when he’s done, allowing the battle to start when you return to the map with the long-range Trainer."
[[Category:Major glitches]]
[[Category:Generation I glitches]]
[[Category:
[[Category:
|