- 148
- Posts
- 12
- Years
- Upstate New York
- Seen Oct 31, 2024
I'd like make a new ability that does just what the Zen Mode ability does, once a certain Hp is reached the Pokemon's sprite and stats change. Is it even possible to make new ones? I've been looking through the scripts and so far found the following about Zen Mode. Where are the scripts telling the game which stats to change when the ability starts? If anyone can help I would be very grateful. Just trying to learn as much about this as I can.
# Zen Mode
if isConst?(self.species,PBSpecies,:DARMANITAN) && hp>0
if isConst?(self.ability,PBAbilities,:ZENMODE)
if @hp<=((@totalhp/2).floor)
if self.form!=1
self.form=1; transformed=true
end
else
if self.form!=0
self.form=0; transformed=true
end
end
else
if self.form!=0
self.form=0; transformed=true
end
end
end
# Zen Mode
if isConst?(self.species,PBSpecies,:DARMANITAN) && hp>0
if isConst?(self.ability,PBAbilities,:ZENMODE)
if @hp<=((@totalhp/2).floor)
if self.form!=1
self.form=1; transformed=true
end
else
if self.form!=0
self.form=0; transformed=true
end
end
else
if self.form!=0
self.form=0; transformed=true
end
end
end