s11 = "選項1"
s12 = "選項2"
s13 = "選項3"
s14 = "選項4
s15 = "選項5"
s16 = "選項6"
@command_window2 = Window_Command.new(160, [s11, s12, s13, s14, s15, s16])
@command_window2.active = false
@command_window2.visible = false
@command_window2.dispose
if @command_window2.active
update_command2
return
end
def update_command2
# 按下 B 鍵的情況下
if Input.trigger?(Input::B)
# 演奏取消 SE
$game_system.se_play($data_system.cancel_se)
# 啟動命令視窗
@command_window.active = true
@command_window2.active = false
@command_window2.visible = false
@command_window2.index = -1
return
end
# 按下 C 鍵的情況下
if Input.trigger?(Input::C)
# 命令視窗的游標位置分支
case @command_window2.index
when 0
#選項1要執行的內容
when 1
#選項2要執行的內容
when 2
#選項3要執行的內容
when 3
#選項4要執行的內容
when 4
#選項5要執行的內容
when 5
#選項6要執行的內容
end
return
end
end
@command_window2.active = true
@command_window2.visible = true
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |