#==============================================================================
# ■ Scene_zhenwei
#------------------------------------------------------------------------------
# 处理菜单画面的类。
#==============================================================================
class Scene_zhenwei
attr_reader :chuzhan_index
#--------------------------------------------------------------------------
# ● 初始化对像
# zhenwei_index : 命令光标的初期位置,zhenwei_index = 9,chuzhan_index = 0
#--------------------------------------------------------------------------
def initialize(zhenwei_index = 0)
@zhenwei_index = zhenwei_index
# @chuzhan_index = chuzhan_index
@wait_time = 0
end
#--------------------------------------------------------------------------
# ● 主处理
#--------------------------------------------------------------------------
def main
# 生成地图背景
@zhenwei_TransparentBackground = Spriteset_Map.new
@chuzhan_IndexCommand = Window_chuzhanCommand.new
# 生成出战菜单选项
@zhenwei_IndexCommand = Window_zhenweiCommand.new
@zhenwei_IndexCommand.index = @zhenwei_index
$出战 = []
$出战 = [$出战_1,$出战_2,$出战_3,$出战_4,$出战_5,$出战_6]
# for i in 0..@chuzhan_IndexCommand.index-1 #对于0中的我..团队编号-1
# @efs_team_spawn[i]=[] #@选定单位[i]=[]
# end
# 冻结
Graphics.transition
# 不切换场景就一直循环
update while $scene == self
# 渐变
Graphics.freeze
@zhenwei_IndexCommand.dispose
@chuzhan_IndexCommand.dispose
# @efs_team_spawn.dispose
end
#--------------------------------------------------------------------------
# ● 刷新画面
#--------------------------------------------------------------------------
def update
Graphics.update
Input.update
@wait_time -= 1
# @efs_team_spawn.update
@zhenwei_IndexCommand.update
update_zhenwei_IndexCommand
end
#--------------------------------------------------------------------------
# ● 刷新画面 (命令窗口被激活的情况下)
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
# ● 刷新画面 (命令窗口被激活的情况下)
#--------------------------------------------------------------------------
def update_zhenwei_IndexCommand
# end
# update_zhenwei_IndexCommand
# 按下 B 键的情况下
if Input.trigger?(Input::B)
# 演奏取消 SE
$game_system.se_play($data_system.cancel_se)
# 切换的地图画面
$scene = Scene_chuzhan.new
return
end
# 按下 C 键的情况下
if Input.trigger?(Input::C)
# 命令窗口的光标位置分支
case @zhenwei_IndexCommand.index
when 0 # 队组1出生点
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
if $game_switches[20] == true
$game_switches[20] = false
$出战_1=[9,13]
# p $出战前锋
$scene = Scene_chuzhan.new(1)
end
if $game_switches[21] == true
$game_switches[21] = false
$出战_2=[9,13]
# @efs_team_spawn(1)==[11,12]
$scene = Scene_chuzhan.new(2)
end
if $game_switches[22] == true
$game_switches[22] = false
$出战_3=[9,13]
# @efs_team_spawn(2)==[13,13]
$scene = Scene_chuzhan.new(3)
end
if $game_switches[23] == true
$game_switches[23] = false
$出战_4=[9,13]
# @efs_team_spawn(3)==[15,12]
$scene = Scene_chuzhan.new(4)
end
if $game_switches[24] == true
$game_switches[24] = false
$出战_5=[9,13]
# @efs_team_spawn[4]==[11,15]
$scene = Scene_chuzhan.new(5)
end
if $game_switches[25] == true
$game_switches[25] = false
$出战_6=[9,13]
#@efs_team_spawn[5]==[9,13]
$scene = Scene_chuzhan.new(0)
end
#-----------------------------------------------------------------------
when 1 # 队组2出生点
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
if $game_switches[20] == true
$game_switches[20] = false
$出战_1=[11,12]
# @efs_team_spawn[i]=[11,12]
$scene = Scene_chuzhan.new(1)
end
if $game_switches[21] == true
$game_switches[21] = false
$出战_2=[11,12]
# @efs_team_spawn[i]=[11,12]
$scene = Scene_chuzhan.new(2)
end
if $game_switches[22] == true
$game_switches[22] = false
$出战_3=[11,12]
#@efs_team_spawn[i]=[11,12]
$scene = Scene_chuzhan.new(3)
end
if $game_switches[23] == true
$game_switches[23] = false
$出战_4=[11,12]
# @efs_team_spawn[i]=[11,12]
$scene = Scene_chuzhan.new(4)
end
if $game_switches[24] == true
$game_switches[24] = false
$出战_5=[11,12]
$scene = Scene_chuzhan.new(5)
end
if $game_switches[25] == true
$game_switches[25] = false
$出战_6=[11,12]
$scene = Scene_chuzhan.new(0)
end
#----------------------------------------------------------------------
when 2 # 队组3出生点
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
# 激活状态窗口
if $game_switches[20] == true
$game_switches[20] = false
$出战_1=[13,13]
$scene = Scene_chuzhan.new(1)
end
if $game_switches[21] == true
$game_switches[21] = false
$出战_2=[13,13]
$scene = Scene_chuzhan.new(2)
end
if $game_switches[22] == true
$game_switches[22] = false
$出战_3=[13,13]
$scene = Scene_chuzhan.new(3)
end
if $game_switches[23] == true
$game_switches[23] = false
$出战_4=[13,13]
$scene = Scene_chuzhan.new(4)
end
if $game_switches[24] == true
$game_switches[24] = false
$出战_5=[13,13]
$scene = Scene_chuzhan.new(5)
end
if $game_switches[25] == true
$game_switches[25] = false
$出战_6=[13,13]
$scene = Scene_chuzhan.new(0)
end
when 3 # 队组4出生点
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
if $game_switches[20] == true
$game_switches[20] = false
$出战_1=[15,12]
$scene = Scene_chuzhan.new(1)
end
if $game_switches[21] == true
$game_switches[21] = false
$出战_2=[15,12]
$scene = Scene_chuzhan.new(2)
end
if $game_switches[22] == true
$game_switches[22] = false
$出战_3=[15,12]
$scene = Scene_chuzhan.new(3)
end
if $game_switches[23] == true
$game_switches[23] = false
$出战_4=[15,12]
$scene = Scene_chuzhan.new(4)
end
if $game_switches[24] == true
$game_switches[24] = false
$出战_5=[15,12]
$scene = Scene_chuzhan.new(5)
end
if $game_switches[25] == true
$game_switches[25] = false
$出战_6=[15,12]
$scene = Scene_chuzhan.new(0)
end
when 4 # 队组5出生点
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
if $game_switches[20] == true
$game_switches[20] = false
$出战_1=[11,15]
$scene = Scene_chuzhan.new(1)
end
if $game_switches[21] == true
$game_switches[21] = false
$出战_2=[11,15]
$scene = Scene_chuzhan.new(2)
end
if $game_switches[22] == true
$game_switches[22] = false
$出战_3=[11,15]
$scene = Scene_chuzhan.new(3)
end
if $game_switches[23] == true
$game_switches[23] = false
$出战_4=[11,15]
$scene = Scene_chuzhan.new(4)
end
if $game_switches[24] == true
$game_switches[24] = false
$出战_5=[11,15]
$scene = Scene_chuzhan.new(5)
end
if $game_switches[25] == true
$game_switches[25] = false
$出战_6=[11,15]
$scene = Scene_chuzhan.new(0)
end
when 5
$game_system.se_play($data_system.decision_se)
if $game_switches[20] == true
$game_switches[20] = false
$出战_1=[15,15]
$scene = Scene_chuzhan.new(1)
end
if $game_switches[21] == true
$game_switches[21] = false
$出战_2=[15,15]
$scene = Scene_chuzhan.new(2)
end
if $game_switches[22] == true
$game_switches[22] = false
$出战_3=[15,15]
$scene = Scene_chuzhan.new(3)
end
if $game_switches[23] == true
$game_switches[23] = false
$出战_4=[15,15]
$scene = Scene_chuzhan.new(4)
end
if $game_switches[24] == true
$game_switches[24] = false
$出战_5=[15,15]
$scene = Scene_chuzhan.new(5)
end
if $game_switches[25] == true
$game_switches[25] = false
$出战_6=[15,15]
$scene = Scene_chuzhan.new(0)
end
when 6
$game_system.se_play($data_system.decision_se)
if $game_switches[20] == true
$game_switches[20] = false
$出战_1=[9,17]
$scene = Scene_chuzhan.new(1)
end
if $game_switches[21] == true
$game_switches[21] = false
$出战_2=[9,17]
$scene = Scene_chuzhan.new(2)
end
if $game_switches[22] == true
$game_switches[22] = false
$出战_3=[9,17]
$scene = Scene_chuzhan.new(3)
end
if $game_switches[23] == true
$game_switches[23] = false
$出战_4=[9,17]
$scene = Scene_chuzhan.new(4)
end
if $game_switches[24] == true
$game_switches[24] = false
$出战_5=[9,17]
$scene = Scene_chuzhan.new(5)
end
if $game_switches[25] == true
$game_switches[25] = false
$出战_6=[9,17]
$scene = Scene_chuzhan.new(0)
end
when 7
$game_system.se_play($data_system.decision_se)
if $game_switches[20] == true
$game_switches[20] = false
$出战_1=[11,18]
$scene = Scene_chuzhan.new(1)
end
if $game_switches[21] == true
$game_switches[21] = false
$出战_2=[11,18]
$scene = Scene_chuzhan.new(2)
end
if $game_switches[22] == true
$game_switches[22] = false
$出战_3=[11,18]
$scene = Scene_chuzhan.new(3)
end
if $game_switches[23] == true
$game_switches[23] = false
$出战_4=[11,18]
$scene = Scene_chuzhan.new(4)
end
if $game_switches[24] == true
$game_switches[24] = false
$出战_5=[11,18]
$scene = Scene_chuzhan.new(5)
end
if $game_switches[25] == true
$game_switches[25] = false
$出战_6=[11,18]
$scene = Scene_chuzhan.new(0)
end
when 8
$game_system.se_play($data_system.decision_se)
if $game_switches[20] == true
$game_switches[20] = false
$出战_1=[13,17]
$scene = Scene_chuzhan.new(1)
end
if $game_switches[21] == true
$game_switches[21] = false
$出战_2=[13,17]
$scene = Scene_chuzhan.new(2)
end
if $game_switches[22] == true
$game_switches[22] = false
$出战_3=[13,17]
$scene = Scene_chuzhan.new(3)
end
if $game_switches[23] == true
$game_switches[23] = false
$出战_4=[13,17]
$scene = Scene_chuzhan.new(4)
end
if $game_switches[24] == true
$game_switches[24] = false
$出战_5=[13,17]
$scene = Scene_chuzhan.new(5)
end
if $game_switches[25] == true
$game_switches[25] = false
$出战_6=[13,17]
$scene = Scene_chuzhan.new(0)
end
when 9
$game_system.se_play($data_system.decision_se)
if $game_switches[20] == true
$game_switches[20] = false
$出战_1=[15,18]
$scene = Scene_chuzhan.new(1)
end
if $game_switches[21] == true
$game_switches[21] = false
$出战_2=[15,18]
$scene = Scene_chuzhan.new(2)
end
if $game_switches[22] == true
$game_switches[22] = false
$出战_3=[15,18]
$scene = Scene_chuzhan.new(3)
end
if $game_switches[23] == true
$game_switches[23] = false
$出战_4=[15,18]
$scene = Scene_chuzhan.new(4)
end
if $game_switches[24] == true
$game_switches[24] = false
$出战_5=[15,18]
$scene = Scene_chuzhan.new(5)
end
if $game_switches[25] == true
$game_switches[25] = false
$出战_6=[15,18]
# p @efs_team_spawn
$scene = Scene_chuzhan.new(0)
end
end
return
end
end
end