- 428
- Posts
- 5
- Years
- Zekko
- Seen Nov 21, 2023
This code is in Battler_UseMove. It is inspired by the code Aegislash's ability Stance Change uses to change his form.
I have copypasted Vaporeon, Jolteon, and Flareon into the Pokemon_Forms PBS under their respective numbers. This script looks okay to me but it does nothing ingame. I ensured EEVEELUTION is the only ability Eevee can have, and I ensured it is the ability the Eevee in my party has when playtesting. Everything looks like it should work.
Code:
if isSpecies?(:EEVEE) && self.ability == :EEVEELUTION
move.calcType = move.pbCalcType(self)
if move.calcType == :WATER
pbChangeForm(1, _INTL("{1} Eevolved into Vaporeon!", pbThis))
elsif move.calcType = :ELECTRIC
pbChangeForm(2, _INTL("{1} Eevolved into Jolteon!", pbThis))
elsif move.calcType = :FIRE
pbChangeForm(3, _INTL("{1} Eevolved into Flareon!", pbThis))
end
end
I have copypasted Vaporeon, Jolteon, and Flareon into the Pokemon_Forms PBS under their respective numbers. This script looks okay to me but it does nothing ingame. I ensured EEVEELUTION is the only ability Eevee can have, and I ensured it is the ability the Eevee in my party has when playtesting. Everything looks like it should work.