parent
a3aae36ba7
commit
5b852342b2
|
@ -21,7 +21,7 @@
|
|||
# ---------------- Variables specific for each team ----------------
|
||||
|
||||
# skybattle::team[1-10]:: - folders for all variables specific to each team (list of players, etc.)
|
||||
#! skybattle::team[1-10]::players - stores every player from team [list of players]
|
||||
# skybattle::team[1-10]::players - stores every player from team [list of players] - probably implemented on minigame startup
|
||||
#! skybattle::team[1-10]::alive_players - list of players alive
|
||||
#! skybattle::team[1-10]::alive_number - number of players alive in team [int]
|
||||
#! skybattle::team[1-10]::kills - number of kills of the whole team [int]
|
||||
|
@ -45,6 +45,7 @@ command /minigame_skybattle_start:
|
|||
loop 10 times:
|
||||
loop entries of team "IDList%loop-number%":
|
||||
add loop-value2 to {skybattle::gaming_players::*}
|
||||
add loop-value2 to {skybattle::team%%loop-number::players::*}
|
||||
broadcast "Načítám minihru Sky Battle"
|
||||
send title "§2Sky Battle" to all players
|
||||
set {skybattle::game_status} to "init"
|
||||
|
@ -68,6 +69,9 @@ command /minigame_skybattle_start:
|
|||
if {skybattle::game_status} is "init":
|
||||
execute console command "/scoreboard players set MaxKolo XD 9"
|
||||
|
||||
resetplayers()
|
||||
resetteams()
|
||||
|
||||
command /skybattle_setborder <number>:
|
||||
description: Set center of border for map x
|
||||
usage: /skybattle_setborder <id of border/arena>
|
||||
|
@ -155,6 +159,13 @@ function spawnteam(team: integer, spawner: integer):
|
|||
|
||||
# !!! POPULATE INVENTORY !!!
|
||||
|
||||
function resetteams():
|
||||
loop 10 times:
|
||||
clear {skybattle::team%loop-value%::*}
|
||||
|
||||
function resetplayers():
|
||||
clear {skybattle::players::*}
|
||||
|
||||
|
||||
on death of player: # victim, attacker
|
||||
add victim's uuid to {skybattle::deadplayers::*}
|
||||
|
|
Loading…
Reference in New Issue