- 37
- Posts
- 8
- Years
- Seen Jan 21, 2021
I'm trying to figure out how to script an evolution method for a Ghost type Eeveelution that would involve it fainting in battle as a prerequisite for evolving (may or may not need to level up before or after that same battle; whatever works script-wise honestly).
In another topic (https://www.pokecommunity.com/threads/410401) a helpful user gave some suggestions for other methods, but this particular evolution method gave the following error whenever Eevee leveled up at all:
Exception: NoMethodError
Message: undefined method `fainted?' for #<PokeBattle_Pokemon:0xf37ff08>
Pokemon_Evolution:896:in `pbMiniCheckEvolution'
Pokemon_Evolution:999:in `pbCheckEvolution'
Pokemon_Evolution:998:in `pbCheckEvolutionEx'
Pokemon_Evolution:987:in `each'
Pokemon_Evolution:987:in `pbCheckEvolutionEx'
Pokemon_Evolution:998:in `pbCheckEvolution'
PItem_Items:318:in `pbChangeLevel'
PItem_ItemEffects:759
PItem_ItemEffects:754:in `call'
Event:150:in `trigger'
-----
Here was the script I used, under Evolution Methods)
when PBEvolution::Fainted
return poke if pokemon.level>=level && pokemon.fainted?
The EVOPARAM was 1, and I'm using v16
Any ideas how to script it properly? I'm flexible on the exact method, as long as it involves the Pokemon fainting in battle.
In another topic (https://www.pokecommunity.com/threads/410401) a helpful user gave some suggestions for other methods, but this particular evolution method gave the following error whenever Eevee leveled up at all:
Exception: NoMethodError
Message: undefined method `fainted?' for #<PokeBattle_Pokemon:0xf37ff08>
Pokemon_Evolution:896:in `pbMiniCheckEvolution'
Pokemon_Evolution:999:in `pbCheckEvolution'
Pokemon_Evolution:998:in `pbCheckEvolutionEx'
Pokemon_Evolution:987:in `each'
Pokemon_Evolution:987:in `pbCheckEvolutionEx'
Pokemon_Evolution:998:in `pbCheckEvolution'
PItem_Items:318:in `pbChangeLevel'
PItem_ItemEffects:759
PItem_ItemEffects:754:in `call'
Event:150:in `trigger'
-----
Here was the script I used, under Evolution Methods)
when PBEvolution::Fainted
return poke if pokemon.level>=level && pokemon.fainted?
The EVOPARAM was 1, and I'm using v16
Any ideas how to script it properly? I'm flexible on the exact method, as long as it involves the Pokemon fainting in battle.
Last edited: