本帖最后由 gqxastg 于 2015-11-29 20:30 编辑
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
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
|