如果只是直接点技能、状态显示第一个的内容,那也容易:
打开 Scene_Menu 脚本,找到:
#-------------------------------------------------------------------------- # ● 生成指令视窗 #-------------------------------------------------------------------------- def create_command_window @command_window = Window_MenuCommand.new @command_window.set_handler(:item, method(:command_item)) @command_window.set_handler(:skill, method(:command_personal)) @command_window.set_handler(:equip, method(:command_personal)) @command_window.set_handler(:status, method(:command_personal)) @command_window.set_handler(:formation, method(:command_formation)) @command_window.set_handler(:save, method(:command_save)) @command_window.set_handler(:game_end, method(:command_game_end)) @command_window.set_handler(:cancel, method(:return_scene)) end
#--------------------------------------------------------------------------
# ● 生成指令视窗
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_MenuCommand.new
@command_window.set_handler(:item, method(:command_item))
@command_window.set_handler(:skill, method(:command_personal))
@command_window.set_handler(:equip, method(:command_personal))
@command_window.set_handler(:status, method(:command_personal))
@command_window.set_handler(:formation, method(:command_formation))
@command_window.set_handler(:save, method(:command_save))
@command_window.set_handler(:game_end, method(:command_game_end))
@command_window.set_handler(:cancel, method(:return_scene))
end
改成:
#-------------------------------------------------------------------------- # ● 生成指令视窗 #-------------------------------------------------------------------------- def create_command_window @command_window = Window_MenuCommand.new @command_window.set_handler(:item, method(:command_item)) @command_window.set_handler(:skill, method(:do_command_skill))#:command_personal)) @command_window.set_handler(:equip, method(:command_personal)) @command_window.set_handler(:status, method(:do_command_status))#:command_personal)) @command_window.set_handler(:formation, method(:command_formation)) @command_window.set_handler(:save, method(:command_save)) @command_window.set_handler(:game_end, method(:command_game_end)) @command_window.set_handler(:cancel, method(:return_scene)) end
#--------------------------------------------------------------------------
# ● 生成指令视窗
#--------------------------------------------------------------------------
def create_command_window
@command_window = Window_MenuCommand.new
@command_window.set_handler(:item, method(:command_item))
@command_window.set_handler(:skill, method(:do_command_skill))#:command_personal))
@command_window.set_handler(:equip, method(:command_personal))
@command_window.set_handler(:status, method(:do_command_status))#:command_personal))
@command_window.set_handler(:formation, method(:command_formation))
@command_window.set_handler(:save, method(:command_save))
@command_window.set_handler(:game_end, method(:command_game_end))
@command_window.set_handler(:cancel, method(:return_scene))
end
然后找个位置加上这一段:
#-------------------------------------------------------------------------- # ● 指令“技能” #-------------------------------------------------------------------------- def do_command_skill SceneManager.call(Scene_Skill) end #-------------------------------------------------------------------------- # ● 指令“状态” #-------------------------------------------------------------------------- def do_command_status SceneManager.call(Scene_Status) end
#--------------------------------------------------------------------------
# ● 指令“技能”
#--------------------------------------------------------------------------
def do_command_skill
SceneManager.call(Scene_Skill)
end
#--------------------------------------------------------------------------
# ● 指令“状态”
#--------------------------------------------------------------------------
def do_command_status
SceneManager.call(Scene_Status)
end
因为预设默认的角色选项位置就是第一个,所以也没有必要多余的处理选角色的部份。 |