- 3
- Posts
- 6
- Years
- Seen Sep 7, 2020
I've been messing around with Pokemon Essentials for at least 6 years, and I'm at a point where I've started to dig into the code for improvements.
Now that I've finally gotten around to implementing Mega Pokemon, I wanted to enhance the player experience by having a few sound effects, followed by the cry associated to the Pokemon, but as the mega form.
In the script section Pokemon_MegaEvolution, I tried to insert pbPlayCry(@pokemon.form) under the MakeMega function. This does not work, and I was hoping to know if more than one head can solve this problem with me?
---------------------------
Pokemon Essentials v17
---------------------------
[Pokémon Essentials version 17.2]
Exception: NoMethodError
Message: undefined method `form' for nil:NilClass
Pokemon_MegaEvolution:54:in `makeMega'
PokeBattle_Battle:1702:in `pbMegaEvolve'
PokeBattle_Battle:2712:in `pbAttackPhase_ebs'
PokeBattle_Battle:2707:in `each'
PokeBattle_Battle:2707:in `pbAttackPhase_ebs'
EliteBattle_Battle:312:in `pbAttackPhase'
EliteBattle_Battle:231:in `pbStartBattleCore'
EliteBattle_Battle:230:in `logonerr'
EliteBattle_Battle:230:in `pbStartBattleCore'
EliteBattle_Battle:218:in `loop'
--------------------------------------------------------------------------
For further context, I'm using a non-modified Elite Battle System, if that helps.
Thank you all in advance, hope to make a wonderful game with you help🙂
Now that I've finally gotten around to implementing Mega Pokemon, I wanted to enhance the player experience by having a few sound effects, followed by the cry associated to the Pokemon, but as the mega form.
In the script section Pokemon_MegaEvolution, I tried to insert pbPlayCry(@pokemon.form) under the MakeMega function. This does not work, and I was hoping to know if more than one head can solve this problem with me?
---------------------------
Pokemon Essentials v17
---------------------------
[Pokémon Essentials version 17.2]
Exception: NoMethodError
Message: undefined method `form' for nil:NilClass
Pokemon_MegaEvolution:54:in `makeMega'
PokeBattle_Battle:1702:in `pbMegaEvolve'
PokeBattle_Battle:2712:in `pbAttackPhase_ebs'
PokeBattle_Battle:2707:in `each'
PokeBattle_Battle:2707:in `pbAttackPhase_ebs'
EliteBattle_Battle:312:in `pbAttackPhase'
EliteBattle_Battle:231:in `pbStartBattleCore'
EliteBattle_Battle:230:in `logonerr'
EliteBattle_Battle:230:in `pbStartBattleCore'
EliteBattle_Battle:218:in `loop'
--------------------------------------------------------------------------
For further context, I'm using a non-modified Elite Battle System, if that helps.
Thank you all in advance, hope to make a wonderful game with you help🙂