• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
    3
    Years
    • Seen May 25, 2024
    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
     

    Asith

    Uwao
  • 237
    Posts
    3
    Years
    • Seen May 31, 2024
    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