Project1
标题:
Scene_Menu哪里出错了?
[打印本页]
作者:
忘记密码
时间:
2008-3-27 21:28
提示:
作者被禁止或删除 内容自动屏蔽
作者:
3535
时间:
2008-3-27 21:46
# 按下 C 键的情况下
if Input.trigger?(Input::C)
# 同伴人数为 0、存档、游戏结束以外的场合
if $game_party.actors.size == 0 and @command_window.index < 4
# 演奏冻结 SE
$game_system.se_play($data_system.buzzer_se)
return
end
# 命令窗口的光标位置分支
case @command_window.index
when 0 # 物品
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
# 切换到物品画面
$scene = Scene_Item.new
when 1 # 特技
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
# 激活状态窗口
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 2 # 装备
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
# 激活状态窗口
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 3 # 状态
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
# 激活状态窗口
@command_window.active = false
@status_window.active = true
@status_window.index = 0
when 4 # 返回原菜单
$scene = Scene_Map.new
when 5 # 调用3号公共事件
$game_systen.se_play($data_system.decision_se)
# 切换到菜单画面
$scene = Scene_Map.new
end
return
end
end
作者:
3535
时间:
2008-3-27 21:48
#--------------------------------------------------------------------------
# ● 刷新画面 (状态窗口被激活的情况下)
#--------------------------------------------------------------------------
def update_status
# 按下 B 键的情况下
if Input.trigger?(Input::B)
# 演奏取消 SE
$game_system.se_play($data_system.cancel_se)
# 激活命令窗口
@command_window.active = true
@status_window.active = false
@status_window.index = -1
return
end
# 按下 C 键的情况下
if Input.trigger?(Input::C)
# 命令窗口的光标位置分支
case @command_window.index
when 1 # 特技
# 本角色的行动限制在 2 以上的情况下
if $game_party.actors[@status_window.index].restriction >= 2
# 演奏冻结 SE
$game_system.se_play($data_system.buzzer_se)
return
end
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
# 切换到特技画面
$scene = Scene_Skill.new(@status_window.index)
when 2 # 装备
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
# 切换的装备画面
$scene = Scene_Equip.new(@status_window.index)
when 3 # 状态
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
# 切换到状态画面
$scene = Scene_Status.new(@status_window.index)
when 5 # 调用3号公共事件
#执行公共事件
common_event = $data_common_events[3]
@child_interpreter = Interpreter.new
@child_interpreter.setup(common_event.list, 0)
@child_interpreter.execute_command
@child_interpreter.update
end
return
end
end
end
作者:
wy29
时间:
2008-3-27 21:54
提示:
作者被禁止或删除 内容自动屏蔽
作者:
忘记密码
时间:
2008-3-28 03:26
提示:
作者被禁止或删除 内容自动屏蔽
作者:
havealook
时间:
2008-3-28 05:57
报的是什么错?
作者:
wy29
时间:
2008-3-28 07:53
提示:
作者被禁止或删除 内容自动屏蔽
作者:
忘记密码
时间:
2008-3-28 21:33
提示:
作者被禁止或删除 内容自动屏蔽
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1