Escape: Difference between revisions

No change in size ,  22 April 2021
m
No edit summary
Line 18: Line 18:
If F is greater than 255, the player escapes automatically. Otherwise, a random number is generated between 0 and 255. If that number is less than F, the player escapes. If not, the escape fails and the player's Pokémon does not make a move that turn. If B is equal to 0, escape is automatically a success.
If F is greater than 255, the player escapes automatically. Otherwise, a random number is generated between 0 and 255. If that number is less than F, the player escapes. If not, the escape fails and the player's Pokémon does not make a move that turn. If B is equal to 0, escape is automatically a success.
===Generation III and IV===
===Generation III and IV===
Escape is guaranteed if the wild Pokémon's Speed is lower than the player's active Pokémon. Otherwise, under normal circumstances, the chance of escaping is determined by the formula <math>(F = {A \times 128 \over B} + 30 \times C) \bmod 256</math>, where  
Escape is guaranteed if the wild Pokémon's Speed is lower than the player's active Pokémon. Otherwise, under normal circumstances, the chance of escaping is determined by the formula <math>F = ({A \times 128 \over B} + 30 \times C) \bmod 256</math>, where  
:A is the unmodified {{Stat|Speed}} of the player's active Pokémon,
:A is the unmodified {{Stat|Speed}} of the player's active Pokémon,
:B is the opposing Pokémon's unmodified Speed
:B is the opposing Pokémon's unmodified Speed