#============================================================================== # [VX] Auto Event Opacity & Blend #------------------------------------------------------------------------------ # Version: 1.0 # Released on: 20/02/2008 # by Woratana [woratana@hotmail.com] # # Exclusive for RPGRevolution.com # # +[How to use]+ # Put Comment (It's in 1st page of event command) like this: # [o(number of opacity)] << To change it's opacity # [add] << To change character's blend to adddition # [neg] << To change character's blend to subtraction # # +[Example]+ # You want opacity to be 180, add comment: # [o180] # You want character's blend type to addition, add comment: # [add] # You want opacity to be 150 and character's blend type to subtraction, add: # [o150][sub] # #============================================================================== class Game_Character attr_accessor :opacity, :blend_type end class Game_Event < Game_Character alias wor_ev_opac_setup setup def setup(new_page) wor_ev_opac_setup(new_page) for i in 0...@list.size next if @list[i].code != 108 if @list[i].parameters[0].include?("[o") list = @list[i].parameters[0].scan(/\[o([0-9]+)\]/) @opacity = $1.to_i end if @list[i].parameters[0].include?("[add]") @blend_type = 1 end if @list[i].parameters[0].include?("[neg]") @blend_type = 2 end end end end