• 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!
  • 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
    4
    Years
    • Seen Jun 19, 2024
    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!)
     
    This has been fixed. Get Essentials v19.1 along with the v19.1 Hotfixes.
     
    Good to know! Thanks for the headsup!
     
    Back
    Top