Project1
标题: 菜单按技能或者状态时候直接显示主角 [打印本页]
作者: 一流浪人 时间: 2013-2-13 08:33
标题: 菜单按技能或者状态时候直接显示主角
本帖最后由 一流浪人 于 2013-2-14 02:39 编辑
菜单按技能或者状态的时候直接显示主角而不是出现选择队伍的指令。
作者: j433463 时间: 2013-2-13 23:12
如果只是直接点技能、状态显示第一个的内容,那也容易:
打开 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
因为预设默认的角色选项位置就是第一个,所以也没有必要多余的处理选角色的部份。
作者: 一流浪人 时间: 2013-2-14 02:36
j433463 发表于 2013-2-13 23:12
如果只是直接点技能、状态显示第一个的内容,那也容易:
打开 Scene_Menu 脚本,找到:
非常感谢你!又让你解决了,非常棒!
欢迎光临 Project1 (https://rpg.blue/) |
Powered by Discuz! X3.1 |