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

Move Relearner Error

43
Posts
10
Years
    • Seen Jun 9, 2016
    This error shows up when I talk to the Move Relearner.What do I do to fix it?

    Exception: RuntimeError

    Message: Script error within event 1, map 184 (Tutor building):

    Exception: NameError

    Message: Section116:4:in `pbEachNaturalMove'undefined local variable or method `k' for #<Interpreter:0xae2ffa8>

    ***Full script:

    pbChoosePokemon(1,3,proc{|p|
    pbHasRelearnableMove?(p)
    },true)


    Interpreter:243:in `pbExecuteScript'

    PokemonMoveRelearner:3:in `each'

    PokemonMoveRelearner:3:in `pbEachNaturalMove'

    PokemonMoveRelearner:15:in `pbGetRelearnableMoves'

    PokemonMoveRelearner:9:in `pbHasRelearnableMove?'

    (eval):2:in `pbExecuteScript'

    (eval):1:in `call'

    PokemonParty:1352:in `pbChooseAblePokemon'

    PokemonParty:1351:in `each'

    PokemonParty:1351:in `pbChooseAblePokemon'



    Interpreter:276:in `pbExecuteScript'

    Interpreter:1599:in `command_355'

    Interpreter:494:in `execute_command'

    Interpreter:193:in `update'

    Interpreter:106:in `loop'

    Interpreter:198:in `update'

    Scene_Map+Menu On Map:201:in `update'

    Scene_Map+Menu On Map:199:in `loop'

    Scene_Map+Menu On Map:212:in `update'

    Scene_Map+Menu On Map:121:in `main'
     

    Nickalooose

    --------------------
    1,309
    Posts
    16
    Years
    • Seen Dec 28, 2023
    You shouldn't post errors from an older version of Essentials without letting us know you're not using 12.1.

    Code:
    def pbEachNaturalMove(pokemon)
      movelist=pokemon.getMoveList
      for i in movelist
        yield i[1],i[0]
      end
    end

    Maruno, maybe you should make this a rule or something lol
     
    43
    Posts
    10
    Years
    • Seen Jun 9, 2016
    That's the reason I didn't post it in the Bugs and Errors thread.
    I didn't know if it was the essentials or something I caused.
     
    Back
    Top