Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # // $game_map.interpreter
- # // call_common_event( common_event_id )
- # // force_common_event( common_event_id )
- # // Dont forget, to update the interpreter
- # // $game_map.interpreter.update
- # // If the scene isn't the map, or battle, stay away from message based commands.
- # // ELSE
- # // add the @message_window from the Scene_Map to your current scene
- # // .x. Dont forget to update it
- class Game_Interpreter
- # //
- def call_common_event( com_id, ev_id=@event_id )
- common_event = $data_common_events[com_id]
- if common_event != nil
- @child_interpreter = Game_Interpreter.new(@depth + 1)
- @child_interpreter.setup(common_event.list, ev_id)
- end
- end
- # // Forces the interpreter to run a common event.
- def force_common_event( com_id )
- common_event = $data_common_events[com_id]
- self.setup(common_event.list)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment