Guest User

Untitled

a guest
Apr 5th, 2014
85
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #==============================================================================
  2. # ** Victor Engine - Actors Battlers Add-on [Armor NoteTags]
  3. #------------------------------------------------------------------------------
  4. # Author : ShadowLurk
  5. #------------------------------------------------------------------------------
  6. # Actors Battler Armor note tags:
  7. #   Tags to be used on the Armors note box in the database
  8. #
  9. #  <battler name: x>
  10. #   This tag allows to set the initial battler graphic filename for the actor.
  11. #    x : battler graphic filename
  12. #
  13. #  <battler hue: x>
  14. #   This tag allows to set the initial battler graphic hur for the actor.
  15. #    x : battler graphic hue (0-360)
  16. #
  17. #------------------------------------------------------------------------------
  18. class Game_Actor < Game_Battler
  19.  
  20.   alias :change_equip_ve_ab_x :change_equip
  21.   def change_equip(*args)
  22.     change_equip_ve_ab_x(*args)
  23.     self.battler_name = actor_battler_name
  24.     armors.each {|armor|
  25.       if armor.note =~ /<BATTLER NAME: ([^><]*)>/i
  26.         self.battler_name = $1.to_s
  27.       end
  28.       if armor.note =~ /<BATTLER HUE: ([^><]*)>/i
  29.         self.battler_hue = $1.to_i
  30.       end
  31.     }
  32.   end
  33.  
  34. end
RAW Paste Data