Talk:Escape: Difference between revisions

Line 60: Line 60:
:In Generation III, under normal circumstances in normal wild battles, fleeing [https://github.com/pret/pokeemerald/blob/60baf19d453b0d7ceea21c7ea461506c3a784a9b/src/battle_main.c#L5673 appears to be] successful if either the player Pokémon's speed is equal or greater than the wild Pokémon's. Else, the formula you mentioned is used, except that the random number (!) is taken mod 256 (such that it's <256), not F. Feel free to fix it. [[User:Nescientist|Nescientist]] ([[User talk:Nescientist|talk]]) 19:42, 31 May 2019 (UTC)
:In Generation III, under normal circumstances in normal wild battles, fleeing [https://github.com/pret/pokeemerald/blob/60baf19d453b0d7ceea21c7ea461506c3a784a9b/src/battle_main.c#L5673 appears to be] successful if either the player Pokémon's speed is equal or greater than the wild Pokémon's. Else, the formula you mentioned is used, except that the random number (!) is taken mod 256 (such that it's <256), not F. Feel free to fix it. [[User:Nescientist|Nescientist]] ([[User talk:Nescientist|talk]]) 19:42, 31 May 2019 (UTC)
::Do you know if in gen 1/2 the flee chance is always succesful if the user speed is >= the wild pokemon? if so then the gen1/2 section may as well be combined with the gen3/4 section as only the formula has changed.[[User:Jmvb|JMVB - very sporadic editor since 2008]] ([[User talk:Jmvb|talk]]) 13:41, 1 June 2019 (UTC)
::Do you know if in gen 1/2 the flee chance is always succesful if the user speed is >= the wild pokemon? if so then the gen1/2 section may as well be combined with the gen3/4 section as only the formula has changed.[[User:Jmvb|JMVB - very sporadic editor since 2008]] ([[User talk:Jmvb|talk]]) 13:41, 1 June 2019 (UTC)
:::I just looked, and it appears to be the case both in [https://github.com/pret/pokecrystal/blob/5cdf4f9ae0cb6884472d9f7ca3926e610345c3ba/engine/battle/core.asm#L3734 Generation II] and [https://github.com/pret/pokered/blob/725b86ebbec23bd1f53fd60bf0201c904fee951d/engine/battle/core.asm#L1614 Generation I] (again with greater or equal, event though the comments doesn't say that). [[User:Nescientist|Nescientist]] ([[User talk:Nescientist|talk]]) 16:06, 1 June 2019 (UTC)