Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # // Variable Monitor
- # // Created By IceDragon
- # // 03/30/2012
- # // 03/30/2012
- # // Icy Engine Iliks
- BAGS_BAR_VARIABLE = 15
- class Game_Variables
- ALERT_PROCS = {
- # // variable_id => proc
- #14 => proc { |id, value| puts "Hello World: V#{id}, Val#{value}" },
- BAGS_BAR_VARIABLE => proc { |id, value| $game_system.bar_style = value if($game_system) }
- }
- alias set_var :[]=
- def []=(id,value)
- ALERT_PROCS[id].call(id,value) if(ALERT_PROCS.has_key?(id)) if(@data[id]!=value)
- set_var(id,value)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment