- 6
- Posts
- 8
- Years
- Age 34
- Seen May 31, 2022
Hi, we have a pokemon who resembles a totem pole and wanted an ability like stance change.
Here's the code
# Affluence
if hasWorkingAbility(:AFFLUENCE) && isConst?(species,PBSpecies,: SPECTOTEM) &&
!@effects[PBEffects::Transform]
if thismove.pbIsSpecial?(type) && self.form!=0
self.form=0
pbUpdate(true)
@battle.scene.pbChangePokemon(self,@pokemon)
@battle.pbDisplay(_INTL("{1} split apart!",pbThis))
PBDebug.log("[Form changed] #{pbThis} split apart")
elsif thismove.pbIsPhysical?(type) && self.form!=1
self.form=1
pbUpdate(true)
@battle.scene.pbChangePokemon(self,@pokemon)
@battle.pbDisplay(_INTL("{1} stacked up!",pbThis))
PBDebug.log("[Form changed] #{pbThis} stacked up!")
end
end
for some reason it will go to special form 1 but not form 0. help please!
Here's the code
# Affluence
if hasWorkingAbility(:AFFLUENCE) && isConst?(species,PBSpecies,: SPECTOTEM) &&
!@effects[PBEffects::Transform]
if thismove.pbIsSpecial?(type) && self.form!=0
self.form=0
pbUpdate(true)
@battle.scene.pbChangePokemon(self,@pokemon)
@battle.pbDisplay(_INTL("{1} split apart!",pbThis))
PBDebug.log("[Form changed] #{pbThis} split apart")
elsif thismove.pbIsPhysical?(type) && self.form!=1
self.form=1
pbUpdate(true)
@battle.scene.pbChangePokemon(self,@pokemon)
@battle.pbDisplay(_INTL("{1} stacked up!",pbThis))
PBDebug.log("[Form changed] #{pbThis} stacked up!")
end
end
for some reason it will go to special form 1 but not form 0. help please!
Last edited: