Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2016
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.68 KB | None | 0 0
  1. # Near the top of the script section Pokemon_MultipleForms, find this method and rearrange it as follows:
  2.  
  3.   def form=(value)
  4.     @form=value
  5.     MultipleForms.call("onSetForm",self,value)
  6.     self.calcStats
  7.     pbSeenForm(self)
  8.   end
  9.  
  10. # Rewrite the following two procedures as follows:
  11.  
  12. MultipleForms.register(:FURFROU,{
  13. "getForm"=>proc{|pokemon|
  14.    if !pokemon.formTime || pbGetTimeNow.to_i>pokemon.formTime.to_i+60*60*24*5 # 5 days
  15.      next 0
  16.    end
  17.    next
  18. },
  19.  
  20. MultipleForms.register(:HOOPA,{
  21. "getForm"=>proc{|pokemon|
  22.    if !pokemon.formTime || pbGetTimeNow.to_i>pokemon.formTime.to_i+60*60*24*3 # 3 days
  23.      next 0
  24.    end
  25.    next
  26. },
  27.  
  28. # That's all you need to do.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement