• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
Vendily's Evolve During Battle

Resource Vendily's Evolve During Battle N/A

Shubham

Rookie
Member
Joined
Jun 2, 2022
Posts
5
hello Vendily there is a small problem after i pasted your script my game
There is a error called 'undefined local variable or method 'pkmn' for Pokebattle_Battle:Class'
could please help me

no problem i solved it. there was two like me who has the same error
 
Last edited:
hello Vendily there is a small problem after i pasted your script my game
There is a error called 'undefined local variable or method 'pkmn' for Pokebattle_Battle:Class'
could please help me
I’m not Vendily, I just updated his script.

You should always share the full error message (backtrace and everything), because just part of it is usually not enough to find the problem. In this case, though, since two people got similar error messages on this thread, I’m guessing you’re in the same situation they were- pasting it in the wrong part of the script.
 

Shubham

Rookie
Member
Joined
Jun 2, 2022
Posts
5
Everytime a Pokemon evolve during when he's battling this error happens

[Pokémon Essentials version 19.1]
[v19.1 Hotfixes 1.0.7]
[EBDX v1.2.6]

Exception: NameError
Message: uninitialized constant PokeBattle_Battle::Battle

Backtrace:
173:Battle_ExpAndMoveLearning:231:in `block (2 levels) in pbGainExpOne'
173:Battle_ExpAndMoveLearning:230:in `each'
173:Battle_ExpAndMoveLearning:230:in `each_with_index'
173:Battle_ExpAndMoveLearning:230:in `block in pbGainExpOne'
173:Battle_ExpAndMoveLearning:180:in `loop'
173:Battle_ExpAndMoveLearning:180:in `pbGainExpOne'
173:Battle_ExpAndMoveLearning:39:in `block (2 levels) in pbGainExp'
171:PokeBattle_Battle:389:in `block in eachInTeam'
171:PokeBattle_Battle:389:in `each'
171:PokeBattle_Battle:389:in `each_with_index'
 
Back
Top