Project1
标题:
[已解决]when 0 的时候切换到命令 s2 $scene = Scene_chuzhan.new
[打印本页]
作者:
金芒芒
时间:
2024-6-23 13:37
标题:
[已解决]when 0 的时候切换到命令 s2 $scene = Scene_chuzhan.new
本帖最后由 金芒芒 于 2024-6-23 13:48 编辑
class Scene_chuzhan
#--------------------------------------------------------------------------
# ● 初始化对像
# chuzhan_index : 命令光标的初期位置
#--------------------------------------------------------------------------
def initialize(chuzhan_index = 0)
@chuzhan_index = chuzhan_index
end
#--------------------------------------------------------------------------
# ● 主处理
#--------------------------------------------------------------------------
def main
# 生成命令窗口
s1 = "出战1"
s2 = "出战2"
s3 = "出战3"
s4 = "出战4"
s5 = "出战5"
@command_window = Window_Chuzhan_Command.new(300, [s1, s2, s3, s4, s5])
@command_window.index = @chuzhan_index
when 0 #
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
# 激活状态窗口
$scene = Scene_chuzhan.new-2 #s2
作者:
金芒芒
时间:
2024-6-23 13:48
$scene = Scene_chuzhan.new(2)
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1