diff --git a/plugins/scripts/scripts/skybattle.sk b/plugins/scripts/scripts/skybattle.sk index a59952c..89b4172 100644 --- a/plugins/scripts/scripts/skybattle.sk +++ b/plugins/scripts/scripts/skybattle.sk @@ -18,6 +18,22 @@ # skybattle::arena[1-3]::border - stores center location of border [coords] # skybattle::arena[1-3]::spawn_location::* [1-10] - stores spawner locations [coords] +# ---------------- 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]::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] + +# ---------------- Variables specific for each player ---------------- + +# skybattle::players::[player_uuid]:: - folder for all variables specific to players (kills, deaths, etc.) +#! skybattle::players::[player_uuid]::kills_number - number of kills of a player [int] +#! skybattle::players::[player_uuid]::deaths - number of deaths of a player +#! skybattle::players::[player_uuid]::kills_names - names of players killed + + command /minigame_skybattle_start: description: Zapni celou minihru skybattle usage: /minigame_skybattle_start @@ -40,6 +56,17 @@ command /minigame_skybattle_start: set gamemode of {skybattle::gaming_players::*} to adventure teleport {skybattle::gaming_players::*} to {skybattle::introlocation} set {skybattle::stop_players} to "True" + hide {skybattle::gaming_players::*} + wait 1 second + send "§e----------- Sky Battle -----------" to {gaming_players::*} + send " V této minihře máte za úkol §cpřežít§r a zabít co nejvíce svých §cprotivníků." to {gaming_players::*} + wait 10 seconds + reveal {skybattle::gaming_players::*} + set {skybattle::stop_players} to "False" + + while {skybattle::game_on} is "True": + if {skybattle::game_status} is "init": + execute console command "/scoreboard players set MaxKolo XD 9" command /skybattle_setborder : description: Set center of border for map x @@ -119,7 +146,17 @@ command /skybattle_listspawners : send "Spawn point %loop-number%:" to player send {skybattle::arena%arg-1%::spawn_location::%loop-number%} to player -on death of player: + + +function spawnteam(team: integer, spawner: integer): + loop entries of team "IDList%{_team}%": + teleport loop-value to location at {skybattle::arena%{skybattle::current_arena}%::spawn_location::%{_spawner}%} + set loop-value's gamemode to adventure + + # !!! POPULATE INVENTORY !!! + + +on death of player: # victim, attacker add victim's uuid to {skybattle::deadplayers::*} launch ball large coloured yellow fading to light green and black at victim's location with duration 0