for groups in @team_groups
next unless groups.aviliable?
groups.calculate_rect_size(@target_d)
if @target_d == 4 or @target_d == 6
if groups.get_length > @team_spawn_height or groups.get_height > @team_spawn_width
Notification.post(groups.name+"队伍过于庞大无法手动布阵!")
next
end
else
if groups.get_length > @team_spawn_width or groups.get_height > @team_spawn_height
Notification.post(groups.name+"队伍过于庞大无法手动布阵!")
next
end
end
if Input.trigger?(Input::C)#如果输入触发器?(输入::C)
if if_user_can_deploy(group)#if-if用户可以部署(组)
# 演奏确定 SE
$game_system.se_play($data_system.decision_se)
#最终x=游戏玩家.x
final_x = $game_player.x
##最终y=游戏玩家.y
final_y = $game_player.y
break
else
$game_system.se_play($data_system.buzzer_se)
end #user can
end #if
if Input.trigger?(Input::B)
# 演奏取消 SE
$game_system.se_play($data_system.cancel_se)
#spawn_groups
#break
end
end #loop
#游戏玩家。透明度=真如果@玩家控制
$game_player.transparent = true if @player_controll
#$游戏玩家。字符名称=临时存储
$game_player.character_name = temp_storage
return final_x, final_y