• 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] Error occuring whenever a Pokemon uses a move in battle.

  • 20
    Posts
    2
    Years
    • Seen Dec 21, 2022
    The error does not crash the game but it does negate all effects of the move. Basically the animation fails to play, no damage is dealt, no stats are altered, and this error pops up.

    Exception: NoMethodError
    Message: undefined method `[]' for nil:NilClass
    PokeBattle_ActualScene:3689:in `pbAnimation'
    PokeBattle_ActualScene:3685:in `pbSaveShadows'
    PokeBattle_ActualScene:3691:in `pbAnimation'
    PokeBattle_Battle:3945:in `pbAnimation'
    PokeBattle_Move:3682:in `pbShowAnimation'
    PokeBattle_Move:3641:in `pbEffect'
    PokeBattle_Battler:4621:in `pbProcessMoveAgainstTarget'
    PokeBattle_Battler:4521:in `each'
    PokeBattle_Battler:4521:in `pbProcessMoveAgainstTarget'
    PokeBattle_Battler:5286:in `pbUseMove'

    I assume the issue is to do with lime 5286 in PokeBattle_Battler? There is no pbUseMove line in there which could be the issue but I can't seem to work out where to put it. The error isn't clear enough for me to wrap my head around.
     

    StCooler

    Mayst thou thy peace discover.
  • 9,320
    Posts
    4
    Years
    • Seen today
    You seem to be using v19 or v20 (I know only v18). Actually the error is on line 3689 of the function pbAnimation in the script PokeBattle_ActualScene lol.
    Does this happen every time you use any move? Or a specific move?
    Can you post the code of the function pbAnimation?
     
    Back
    Top