I've tried with the following code, but I get an error and I do not know how to fix it
poke=pbChooseAblePokemon(1,3)
pbChangeLevel(poke,poke.level-1,scene)
poke.calcStats
Pokemon Essentials Esp v16.2
---------------------------
Excepción: RuntimeError
Mensaje: Script error within event 12, map 89 (Centro Pokémon):
Exception: NoMethodError
Message: (eval):2:in `pbExecuteScript'undefined method `level' for true:TrueClass
***Full script:
poke=pbChooseAblePokemon(1,3)
pbChangeLevel(poke,poke.level-1,scene)
poke.calcStats
Interpreter:243:in `pbExecuteScript'
Interpreter:1606:in `eval'
Interpreter:243:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `update'
Scene_Map:101:in `loop'
Interpreter:276:in `pbExecuteScript'
Interpreter:1606:in `command_355'
Interpreter:494:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `update'
Scene_Map:101:in `loop'
Scene_Map:114:in `update'
Scene_Map:68:in `main'