• 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.
  • The Eevee Expo Game Jam has concluded! 🎉 Head on over to the game jam forum to play through the games.
    Don't forget to come back September 21st to vote for your favorites!
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Vendily's Evolve During Battle

Resource Vendily's Evolve During Battle N/A

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.
 
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'
 
V21.1

Regarding the background music. Has anyone figured out how to make the background music continue instead of starting over? I added the $game_map.autoplayAsCue, but as another person wrote; it didn't work. I've tried taking out the AsCue and even the pbFadeOutIn BGM at the beginning of this script addition, but that resulted in a evolution screen that showed half the battle screen and stopped BGM from playing. Is there something that I'm missing/putting in the wrong spot? Currently, I have it posted at line 234 (after the battler.name=pkmn.name line). Thanks in advance!
 
Last edited:
Back
Top