加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 兔毛鹿 于 2013-8-14 16:07 编辑
自制了一个主菜单窗口,只在Game_Player的272~297行添加过一段脚本,请教如何在选装备确定后弹出一可选择角色的目标窗口?
附上工程:
Project1.rar
(190.76 KB, 下载次数: 52)
添加的脚本:
if Input.trigger?(Input::B) w = Window_Command.new(128,["物品","装备","存档","退出"]) w.x = 320 w.y = 240 loop do Graphics.update Input.update w.update if Input.press?(Input::C) $game_system.se_play($data_system.decision_se) case w.index when 0 p "物品" when 1 p "装备" when 2 $scene = Scene_Save.new w.dispose w = nil return when 3 exit end end end end
if Input.trigger?(Input::B)
w = Window_Command.new(128,["物品","装备","存档","退出"])
w.x = 320
w.y = 240
loop do
Graphics.update
Input.update
w.update
if Input.press?(Input::C)
$game_system.se_play($data_system.decision_se)
case w.index
when 0
p "物品"
when 1
p "装备"
when 2
$scene = Scene_Save.new
w.dispose
w = nil
return
when 3
exit
end
end
end
end
|