Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module Flip
- def self.switchname(sn)
- switchiname = $data_system.switches[sn]
- if switchiname[/^s\:/]
- $game_switches[sn] = eval($~.post_match)
- end
- end
- def self.varname(vn)
- variname = $data_system.variables[vn]
- if variname[/^s\:/]
- $game_variables[vn] = eval($~.post_match)
- end
- end
- end
- class Scene_Map < Scene_Base
- alias flip_method_update_sv update
- def update
- for sn in 1..($data_system.switches.size - 1)
- Flip.switchname(sn)
- end
- for vn in 1..($data_system.variables.size - 1)
- Flip.varname(vn)
- end
- flip_method_update_sv
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement