• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

[Scripting Question] Error message after adding a move

  • 3
    Posts
    8
    Years
    • Seen Oct 5, 2022
    Hey there everyone, I've just started testing the waters with pokemon essentials, and I created a new move (a physical ice version of electro ball) and added it into the learnset of one of the starters to test it and now I'm getting this message:

    Exception: NameError

    Message: undefined local variable or method `ret' for #<PokeBattle_Move_0F4:0xbde3950>

    PokeBattle_MoveEffects:6847:in `pbEffectAfterHit'

    PokeBattle_Battler:2841:in `pbProcessMoveAgainstTarget'

    PokeBattle_Battler:3151:in `pbUseMove'

    PokeBattle_Battler:3131:in `loop'

    PokeBattle_Battler:3154:in `pbUseMove'

    PokeBattle_Battler:3350:in `pbProcessTurn'

    PokeBattle_Battler:3349:in `logonerr'

    PokeBattle_Battler:3349:in `pbProcessTurn'

    PokeBattle_Battle:2943:in `pbAttackPhase'

    PokeBattle_Battle:2940:in `each'

    After this message appears and I select OK, my turn in the battle is skipped and the opposing pokemon uses its move. Additionally, my new move doesn't even appear on the pokemon. What is this message and how can I fix it? Please and thank you.
     
    Obviously he also edited the scripts or we wouldn't get an undefined variable error.
    @TheDarkRattata what did you add to your MoveEffects script?
     
    560,SKATINGSLAM,Skating Slam,099,1,ICE,Physical,100,20,0,00,0,abef,"The user slides along ice and propells itself into the target. It does more damage the faster the user is."

    Did I do something wrong or miss something?

    So I didn't think I needed to do anything else because it was just a redo of electro ball.
     
    So just to be clear, you have only edited moves.txt?
    You haven't touched the scripts?
     
    That's right. The tutorial on the wiki didn't say what to do so I didn't want to mess with it.
     
    Back
    Top