Thread: [Question] Ability cloning Zen Mode?
View Single Post
  #1    
Old September 27th, 2012 (04:52 PM).
JynxedOne's Avatar
JynxedOne JynxedOne is offline
Team Kanto
 
Join Date: Sep 2012
Location: Upstate New York
Gender: Male
Nature: Hasty
Posts: 121
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
Reply With Quote