为了优化游戏,想请大家帮忙写一个脚本,在同伴选项下面加一个选项,增加的选项功能是使用一个公共事件。
class Window_PartyCommandalias shijian_make_command_list make_command_list def make_command_list shijian_make_command_list add_command("你想要的名字", :shijian) endendclass Scene_Battlealias shijian_create_party_command_window create_party_command_window def create_party_command_window shijian_create_party_command_window @party_command_window.set_handler(:shijian, method(:command_shijian)) end def command_shijian $game_temp.reserve_common_event(公共事件的ID) process_event start_party_command_selection endend
class Window_PartyCommand alias shijian_make_command_list make_command_list def make_command_list shijian_make_command_list add_command("你想要的名字", :shijian) end end class Scene_Battle alias shijian_create_party_command_window create_party_command_window def create_party_command_window shijian_create_party_command_window @party_command_window.set_handler(:shijian, method(:command_shijian)) end def command_shijian $game_temp.reserve_common_event(公共事件的ID) process_event start_party_command_selection end end
查看全部评分
折叠内容标题(非必须)
折叠内容
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2025-7-4 23:17
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.