赞 | 0 |
VIP | 1 |
好人卡 | 0 |
积分 | 1 |
经验 | 3179 |
最后登录 | 2013-10-25 |
在线时间 | 140 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 66
- 在线时间
- 140 小时
- 注册时间
- 2012-2-6
- 帖子
- 384
|
- #==============================================================================
- # ■ Game_Interpreter_Self
- #------------------------------------------------------------------------------
- # 独立公共事件执行器
- #==============================================================================
- =begin
- 独立公共事件执行器用于随时执行公共事件,不受公共事件调用地方的限制。
- □使用方法:
- 1。将脚本插入main前。
- 2。在需要使用公共事件的地方
- 插入、
- GIS.new(公共事件ID)
- □可能的冲突:无
- 已经被改过兼容VA了。
- 原制作者为九夜神尊。
- =end
- class GIS < Game_Interpreter
- def initialize(com_id)
- @com_id = com_id
- common_event = $data_common_events[@com_id]
- setup(common_event.list)
- update
- clear
- end
- def command_117
- if $data_common_events[@params[0]]
- child = Game_Interpreter_Self.new(@params[0])
- child.run
- end
- end
- end
- class Window_MenuCommand < Window_Command
- def add_save_command
- add_command("公共事件1", :save, true)
- add_command("公共事件2", :save2, true)
- end
- def add_game_end_command
- add_command("系统", :game_end)
- end
- end
- class Scene_Menu < Scene_MenuBase
- alias ccw_zabing create_command_window
- def create_command_window
- ccw_zabing
- @command_window.set_handler(:save2, method(:command_save2))
- end
- def command_save
- fadeout_all
- return_scene
- GIS.new(1)
- end
- def command_save2
- fadeout_all
- return_scene
- GIS.new(2)
- end
- alias cgw_zabing create_gold_window
- def create_gold_window
- cgw_zabing
- @gold_window2 = Window_Gold2.new
- @gold_window2.x = 0
- @gold_window2.y = Graphics.height - 2 * @gold_window.height
- @gold_window3 = Window_Gold3.new
- @gold_window3.x = 0
- @gold_window3.y = Graphics.height - 3 * @gold_window.height
- @gold_window4 = Window_Gold4.new
- @gold_window4.x = 0
- @gold_window4.y = Graphics.height - 4 * @gold_window.height
- end
- end
- class Scene_End < Scene_MenuBase
- alias ccw_zabing create_command_window
- def create_command_window
- ccw_zabing
- @command_window.set_handler(:to_load, method(:command_to_load))
- end
- def command_to_load
- close_command_window
- fadeout_all
- SceneManager.call(Scene_Load)
- end
- end
- class Window_GameEnd < Window_Command
- def make_command_list
- add_command(Vocab::to_title, :to_title)
- add_command(Vocab::shutdown, :shutdown)
- add_command("读取档案", :to_load)
- end
- end
- class Window_Gold2 < Window_Gold
- def refresh
- contents.clear
- draw_currency_value($game_variables[1], $data_system.variables[1], 4, 0, contents.width - 8)
- end
- end
- class Window_Gold3 < Window_Gold
- def refresh
- contents.clear
- draw_currency_value($game_variables[2], $data_system.variables[2], 4, 0, contents.width - 8)
- end
- end
- class Window_Gold4 < Window_Gold
- def refresh
- contents.clear
- draw_currency_value($game_variables[3], $data_system.variables[3], 4, 0, contents.width - 8)
- end
- end
复制代码 这样就可以了
|
|