• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • 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 today
    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