- 2
- Posts
- 2
- Years
- Seen Oct 1, 2023
Hey guys!
I've never coded before, and decided to tackle a custom ability.
Essentially, I want the specific pokemon to change into a different sprite when they become Poisoned.
I tried my best to make this happen, replicating the Form Change info from Castform, but, it isn't working. Nothing happens when the Pokemon is Poisoned.
If someone could help, I'd be extremely grateful!
Here is the code I have atm!
I've never coded before, and decided to tackle a custom ability.
Essentially, I want the specific pokemon to change into a different sprite when they become Poisoned.
I tried my best to make this happen, replicating the Form Change info from Castform, but, it isn't working. Nothing happens when the Pokemon is Poisoned.
If someone could help, I'd be extremely grateful!
Here is the code I have atm!
Code:
if isSpecies?(:AIPOM)
if hasActiveAbility?(:HUNGRYFORNOODLES)
newForm = 0
case pbHasAnyStatus?
when :POISON 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
Last edited by a moderator: