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

[Discussion] How do i fix? Battle in Essentials v18.1

107
Posts
3
Years
    • Seen Apr 27, 2023
    [Thu Apr 01 00:25:57 -0300 2021]
    [Pokémon Essentials version 18.1]
    Exception: NameError
    Message: undefined local variable or method `b' for #<PokeBattle_Battle:0x7b715df470>

    Backtrace:
    145:Battle_Action_Switching:248:in `pbMessageOnRecall'
    150:Battle_Phase_Attack:57:in `pbAttackPhaseSwitch'
    150:Battle_Phase_Attack:51:in `each'
    150:Battle_Phase_Attack:51:in `pbAttackPhaseSwitch'
    150:Battle_Phase_Attack:183:in `pbAttackPhase'
    142:Battle_StartAndEnd:323:in `pbBattleLoop'
    059:PBDebug:6:in `logonerr'
    142:Battle_StartAndEnd:323:in `pbBattleLoop'
    142:Battle_StartAndEnd:308:in `loop'
    142:Battle_StartAndEnd:308:in `pbBattleLoop'
     
    1,407
    Posts
    10
    Years
    • Seen yesterday
    Like the error states, you have a variable, "b" somewhere in the code related to switching that hasn't been defined.

    You should probably check pbMessageOnRecall for this undefined variable.
     
    Back
    Top