- 3
- Posts
- 7
- Years
- Seen Mar 30, 2018
Hello there, I've been trying to figure out how to make a Pokemon change form when it uses a specific move, like how Meloetta changes forms with Relic song, but it's not working.
Here's how my script looks in Pokebattle_Battler:
if isConst?(self.ability,PBAbilities,:CUSTOMABILITY) &&
isConst?(self.species,PBSpecies,:CUSTOMPOKEMON) && hp>0
if self.form == 0 && !thismove.nil? && thismove.id == 700
self.form=1 #Form 2
transformed=true
end
end
Yet when I use the move with the ID in question, it doesn't change forms. When I remove the "&& !thismove.nil? && thismove.id == 700 " (like how King's shield makes Aegislash go back into shield form), it automatically transforms upon entering battle. I've tried "thismovefunction =" and the likes too and it's just not working at all.
Just to clarify, I want the transformation to be a one way thing in battle, and I already have it set up so that it reverts to the original form after battle.
Here's how my script looks in Pokebattle_Battler:
Spoiler:
if isConst?(self.ability,PBAbilities,:CUSTOMABILITY) &&
isConst?(self.species,PBSpecies,:CUSTOMPOKEMON) && hp>0
if self.form == 0 && !thismove.nil? && thismove.id == 700
self.form=1 #Form 2
transformed=true
end
end
Yet when I use the move with the ID in question, it doesn't change forms. When I remove the "&& !thismove.nil? && thismove.id == 700 " (like how King's shield makes Aegislash go back into shield form), it automatically transforms upon entering battle. I've tried "thismovefunction =" and the likes too and it's just not working at all.
Just to clarify, I want the transformation to be a one way thing in battle, and I already have it set up so that it reverts to the original form after battle.
Last edited: