![[PokeCommunity.com] Evo During Battle [PokeCommunity.com] Evo During Battle](https://cdn.discordapp.com/attachments/343184505483296769/346115366726008833/evobattlev4.gif)
Place on Line 2050, PokeBattle_Battle, end of def pbGainExpOne or find "# Finding all moves learned at this level" after the 2nd end
Make sure to put this code outside of a method.
Code:
def name=(value)
@name=value
end
Code:
[B]# Finding all moves learned at this level[/B]
movelist=thispoke.getMoveList
for k in movelist
if k[0]==thispoke.level # Learned a new move
pbLearnMove(index,k[1])
end
end
[B]#Evo During Battle[/B]
newspecies=pbCheckEvolution(thispoke)#edit
if newspecies>0
pbFadeOutInWithMusic(99999){
evo=PokemonEvolutionScene.new
evo.pbStartScreen(thispoke,newspecies)
evo.pbEvolution
evo.pbEndScreen
if battler
@scene.pbChangePokemon(@battlers[battler.index],@battlers[battler.index].pokemon)
battler.name=thispoke.name
end
}
end
Credit:
Vendily
Last edited: