- 1
- Posts
- 2
- Years
- Seen Jan 1, 2024
I'm trying to add a Pokemon that changes forms in rain and heavy rain, like Cherrim. However, I also want the Pokemon to have different stats and change type. I've already defined the form and tried to alter the code for Forecast and Flower Gift to fit my needs. The ability is activating, but somehow the stats and type aren't changing. Could anybody give me tips on what I'm doing wrong?
What I currently have is:
if isSpecies?(:PSYCHROB)
if hasActiveAbility?(:WATERPRESSURE)
newForm = 0
case effectiveWeather
when :Rain, :HeavyRain then newForm = 1
end
if @form != newForm
@battle.pbShowAbilitySplash(self, true)
@battle.pbHideAbilitySplash(self)
pbChangeForm(newForm, _INTL("{1} transformed!", pbThis))
end
else
pbChangeForm(0, _INTL("{1} transformed!", pbThis))
end
end
What I currently have is:
if isSpecies?(:PSYCHROB)
if hasActiveAbility?(:WATERPRESSURE)
newForm = 0
case effectiveWeather
when :Rain, :HeavyRain then newForm = 1
end
if @form != newForm
@battle.pbShowAbilitySplash(self, true)
@battle.pbHideAbilitySplash(self)
pbChangeForm(newForm, _INTL("{1} transformed!", pbThis))
end
else
pbChangeForm(0, _INTL("{1} transformed!", pbThis))
end
end