#--------------------------------------------------------------------------
# ● 输入按钮
#--------------------------------------------------------------------------
def input_button
# 判定按下的按钮
n = 0
for i in 1..18
if Input.trigger?(i)
n = i
end
end
# 按下按钮的情况下
if n > 0
# 更改变量值
$game_variables[@button_input_variable_id] = n
$game_map.need_refresh = true
# 输入按键结束
@button_input_variable_id = 0
end
end
#--------------------------------------------------------------------------
# ● 输入按钮
#--------------------------------------------------------------------------
def input_button
# 判定按下的按钮
n = 0
for i in 1..18
if Input.trigger?(i)
n = i
end
end
# 按下按钮的情况下
if n > 0
# 更改变量值
$game_variables[@button_input_variable_id] = n
$game_map.need_refresh = true
# 输入按键结束
@button_input_variable_id = 0
end
end