• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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
    3
    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.
     
    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