• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] ability fail

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!
 
Last edited:
Back
Top