Added checklist for each arena

Added force next round "/skybattle_nextround" command
main
Anorak_1 2022-11-13 11:45:34 +01:00
parent 4445cf4563
commit 60544cc959
1 changed files with 76 additions and 0 deletions

View File

@ -212,6 +212,82 @@ command /minigame_skybattle_start:
wait 5 seconds
execute console command "/stopscript_skybattle"
command /skybattle_checklist <number>:
permission: skript.op
usage: /skybattle_checklist <arena 1-3>
trigger:
if arg-1 is 1:
send "ARENA 1 Checklist"
if {skybattle::introlocation} exists:
send "Intro location: §a✔"
else:
send "Intro location: §4✕"
if {skybattle::lobbylocation} exists:
send "Lobby location: §a✔"
else:
send "Lobby location: §4✕"
if {skybattle::arena1::spectatorlocation} exists:
send "Spectator location: §a✔"
else:
send "Spectator location: §4✕"
if {skybattle::arena1::border} exists:
send "Border center location: §a✔"
else:
send "Border center location: §4✕"
if size of {skybattle::arena1::spawn_location::*} is 10:
send "Spawner locations: §a✔"
else:
send "Spawner locations: §4✕"
if arg-1 is 2:
send "ARENA 2 Checklist"
if {skybattle::introlocation} exists:
send "Intro location: §a✔"
else:
send "Intro location: §4✕"
if {skybattle::lobbylocation} exists:
send "Lobby location: §a✔"
else:
send "Lobby location: §4✕"
if {skybattle::arena2::spectatorlocation} exists:
send "Spectator location: §a✔"
else:
send "Spectator location: §4✕"
if {skybattle::arena2::border} exists:
send "Border center location: §a✔"
else:
send "Border center location: §4✕"
if size of {skybattle::arena2::spawn_location::*} is 10:
send "Spawner locations: §a✔"
else:
send "Spawner locations: §4✕"
if arg-3 is 3:
send "ARENA 3 Checklist"
if {skybattle::introlocation} exists:
send "Intro location: §a✔"
else:
send "Intro location: §4✕"
if {skybattle::lobbylocation} exists:
send "Lobby location: §a✔"
else:
send "Lobby location: §4✕"
if {skybattle::arena3::spectatorlocation} exists:
send "Spectator location: §a✔"
else:
send "Spectator location: §4✕"
if {skybattle::arena3::border} exists:
send "Border center location: §a✔"
else:
send "Border center location: §4✕"
if size of {skybattle::arena3::spawn_location::*} is 10:
send "Spawner locations: §a✔"
else:
send "Spawner locations: §4✕"
command /skybattle_nextround:
permission: skript.op
trigger:
set {game_status} to "next"
function setbordercenter():
set {_x} to {skybattle::arena%{skybattle::current_arena}%::border}'s x coord
set {_z} to {skybattle::arena%{skybattle::current_arena}%::border}'s z coord