• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Akari, Red, Kris, May - which Pokémon protagonist is your favorite? Let us know by voting in our semifinal favorite protagonist poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Battle] 100% Run Away Chance

  • 2
    Posts
    4
    Years
    • Seen Jun 12, 2025
    Hey friends, I'd like to disable the formula for calculating run chance if you're slower. I'd like it to be guaranteed to run from a pokemon no matter what your speed is. Does anyone have any advice about how I might go about making this change? Thanks for any insight/help you're able to give
     
    This logic is handled in TryRunFromBattle() (https://github.com/pret/pokefirered...fcd0f5d9142637769baa0/src/battle_main.c#L4225).
    The function is at 08016748 in binary.
    For binary I would just try to edit the numerical values around line 4259 ( speedVar = (gBattleMons[battler].speed * 128) / (gBattleMons[BATTLE_OPPOSITE(battler)].speed) + (gBattleStruct->runTries * 30); ) in a way so that the next conditional always returns true and effect++ is always called
     
    Back
    Top