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

[Scripting Question] Error message after adding a move

3
Posts
7
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.
     
    971
    Posts
    7
    Years
    • Age 21
    • Seen Nov 28, 2022
    Did you also mess with the scripts or only the PBS, moves.txt?
     
    320
    Posts
    14
    Years
    • Seen Dec 27, 2021
    Obviously he also edited the scripts or we wouldn't get an undefined variable error.
    @TheDarkRattata what did you add to your MoveEffects script?
     
    3
    Posts
    7
    Years
    • Seen Oct 5, 2022
    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.
     
    320
    Posts
    14
    Years
    • Seen Dec 27, 2021
    So just to be clear, you have only edited moves.txt?
    You haven't touched the scripts?
     
    3
    Posts
    7
    Years
    • Seen Oct 5, 2022
    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