Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin
- #===============================================================================
- # Name : Common Event Menu Option
- # Version : 1.0
- # Author : Dark Sky
- # Terms of use : Can be use in any project. Credit me if u like
- # Website : www.taotrochoi.com & www.gamevts.org
- #===============================================================================
- =end
- #===============================================================================
- # ** CommonEvent_Drk
- #===============================================================================
- module CommonEvent_Drk
- #------------------You can be edit that thing below---------------------------
- CommonEventID = 1 #Comond Event will be activate
- Custom_Name = "Common Event" #Name of this command in Menu
- #-----------------------------------------------------------------------------
- end
- include CommonEvent_Drk
- #===============================================================================
- # ** Scene_Menu
- #===============================================================================
- class Scene_Menu < Scene_MenuBase
- alias drk_commond_event_options create_command_window
- def create_command_window
- drk_commond_event_options
- @command_window.set_handler(:cmevent, method(:command_event))
- end
- def command_event
- SceneManager.return
- $game_temp.reserve_common_event(CommonEventID)
- end
- end
- #===============================================================================
- # ** Window_MenuCommand
- #===============================================================================
- class Window_MenuCommand < Window_Command
- alias drk_add_common_event_command make_command_list
- def make_command_list
- drk_add_common_event_command
- add_commonevent_command
- end
- def add_commonevent_command
- add_command(Custom_Name, :cmevent)
- end
- end
- #===============================================================================
- # ** End of File
- #===============================================================================
Advertisement
Add Comment
Please, Sign In to add comment