PP underflow glitch (disambiguation): Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
>Sherkel
m (Formatting.)
>Torchickens
(Tidying.)
Line 1: Line 1:
{{Misc R/B}}
{{Misc R/B}}
The [[PP Reset Glitch]] is a [[glitch]] in the [[bp:Generation I|Generation I]] Pokémon games. It allows certain Pokémon to have one of their moves' PP underflow to large values after reaching zero.
The [[PP Reset Glitch]] is a [[glitch]] in the [[bp:Generation I|Generation I]] Pokémon games. It abuses an oversight regarding moves which are selected automatically by the game engine and potentially allows a Pokémon to have one of their moves' PP underflow to large values after reaching zero.
==Moves that cause an auto-select==
==Moves that cause an auto-select==
This glitch functions by abusing the auto-selection of moves caused by certain moves. The moves that cause this are the following:
This glitch functions by abusing an automatically selected move. In normal gameplay, moves are automatically selected after the player uses a certain move such as [[bp:Bind (move)|Bind]] or [[bp:Metronome (move)|Metronome]]. Below are a list of moves which in term, allow the player to perform a move automatically.

* Bind
* Bind
* Clamp
* Clamp
Line 10: Line 11:
* Mimic
* Mimic
* Wrap
* Wrap

While these moves are not absolutely necessary for the glitch, it will make performing it considerably easier.
While these moves are not absolutely necessary for the glitch, it will make performing it considerably easier.
==Requirements==
==Requirements==
* A Pokémon to use for the glitch, preferably knowing any of the moves listed above. If the Pokémon used does not know any of these moves, it will have to be frozen and defrosted, which requires the opponent to either use a Fire-type move or Haze (Pokémon cannot thaw out on their own in Generation I.)
* A Pokémon to use for the glitch, preferably knowing any of the moves listed above. If the Pokémon used does not know any of these moves, it will have to choose a move just before becoming frozen on the same turn, and defrost on the second turn. This requires the opponent to either use a Fire-type move or Haze as Pokémon cannot thaw out on their own in Generation I.
==Procedure==
==Procedure==
#Make sure the move that will be used for the glitch is at 1 PP, or a slightly higher number for the trapping moves.
#Make sure the move that will be used for the glitch is at 1 PP, or a slightly higher number for the trapping moves.
Line 19: Line 21:
The move's PP will now become 63, regardless of whether PP Ups had been used on the move.
The move's PP will now become 63, regardless of whether PP Ups had been used on the move.
==How it works==
==How it works==
The reason this glitch occurs is that in Generation I, there was no check to prevent a move's usage after an auto-select with 0 PP. This was first added in [[bp:Generation II|Generation II]].
The reason this glitch occurs is that in Generation I, there was no check to prevent a move's use after an auto-select with 0 PP. This was first added in [[bp:Generation II|Generation II]].


The amount of PP given to the move after it underflows is determined by the amount of PP Ups that were used on the move. In Generation I, the PP of moves was stored in one byte, in which the first two bits stored the amount of PP Ups used on any move, and the last six stored the amount of remaining PP. So, when a move with 0 PP is used, its value resets to 255, giving the move 63 PP. This value is higher than any attainable without this glitch, as moves in Generations I and II with 40 base PP maxed out at 61, likely due to a lack of data space. If no PP Ups were previously used on the move, the maximum amount will be applied. If PP Ups were previously used on the move, the move will lose one PP Up.
The amount of PP given to the move after it underflows is determined by the amount of PP Ups that were used on the move. In Generation I, the PP of moves was stored in one byte, in which the first two bits stored the amount of PP Ups used on any move, and the last six stored the amount of remaining PP. So, when a move with 0 PP is used, its value resets to 255, giving the move 63 PP. This value is higher than any attainable without this glitch, as moves in Generations I and II with 40 base PP maxed out at 61, likely due to a lack of data space. If no PP Ups were previously used on the move, the maximum amount will be applied. If PP Ups were previously used on the move, the move will lose one PP Up.