• 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.

[Error] AI breaks when trying to strategically switch out another monster during battle [v19]

Scraps The Man

Crystal Collector
33
Posts
3
Years
    • Seen Nov 26, 2023
    I was doing a double battle with a boss in my game, and I think they tried to switch out their monster for another one; however, instead of switching out, an error appeared and gave me a free turn to attack. Here is the error, if there is anything that I need to fix I would love to know! Thanks in advance, and have a good one!
    -----------------------------------------------
    [Pokemon Essentials version 19]
    [v19 Hotfixes 1.0.6]

    Exception: ArgumentError
    Message: comparison of Symbol with 0 failed

    Backtrace:
    187:AI_Switch:110:in `>='
    187:AI_Switch:110:in `block in pbEnemyShouldWithdrawEx?'
    187:AI_Switch:94:in `each'
    187:AI_Switch:94:in `each_with_index'
    187:AI_Switch:94:in `pbEnemyShouldWithdrawEx?'
    187:AI_Switch:6:in `pbEnemyShouldWithdraw?'
    207:PokeBattle_BattlePalace:193:in `pbEnemyShouldWithdraw?'
    208:PokeBattle_BattleArena:178:in `pbEnemyShouldWithdraw?'
    185:PokeBattle_AI:64:in `pbDefaultChooseEnemyCommand'
    180:Battle_Phase_Command:200:in `block in pbCommandPhaseLoop'
    ------------------------------------------------
    (I can try my best to supply any information you may need, but do know that the whole script should not have been tampered with yet!)
     
    Back
    Top