From cc04677307e2aa497f17e3d6c8483f0e904705e2 Mon Sep 17 00:00:00 2001 From: Anorak_1 Date: Wed, 9 Nov 2022 18:42:46 +0100 Subject: [PATCH] Last commit of the day --- plugins/scripts/scripts/skybattle.sk | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/plugins/scripts/scripts/skybattle.sk b/plugins/scripts/scripts/skybattle.sk index 259fcce..a144fd7 100644 --- a/plugins/scripts/scripts/skybattle.sk +++ b/plugins/scripts/scripts/skybattle.sk @@ -32,6 +32,11 @@ #! 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 +#! skybattle::players::[player_uuid]::survived_count - place at which you survived +#! skybattle::players::[player_uuid]::survived_multiplier - inverted count = 40th place -> multiplier 1x + +# 40 za kill +# 10 za přežití command /minigame_skybattle_start: @@ -40,26 +45,26 @@ command /minigame_skybattle_start: executable by: the console and players permission: skript.op trigger: - execute console command "/gamerule keepInventory true" + #execute console command "/gamerule doImmediateRespawn true" clear {skybattle::gaming_players::*} 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 + broadcast "Načítám minihru Oblačný Souboj" + send title "§2Oblačný Souboj" to all players set {skybattle::game_status} to "init" set {skybattle::game_on} to "True" wait 2 seconds send subtitle "Teleportuji" to all players wait 1 second set {skybattle::intro} to "True" - set gamemode of {skybattle::gaming_players::*} to adventure + set gamemode of {skybattle::gaming_players::*} to survival 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 "§e----------- Oblačný Souboj -----------" 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::*} @@ -67,11 +72,13 @@ command /minigame_skybattle_start: while {skybattle::game_on} is "True": if {skybattle::game_status} is "init": - execute console command "/scoreboard players set MaxKolo XD 9" + execute console command "/scoreboard players set MaxKolo XD 3" resetplayers() resetteams() + set {skybattle::current_arena} to 1 + command /skybattle_setborder : description: Set center of border for map x usage: /skybattle_setborder @@ -155,7 +162,7 @@ command /skybattle_listspawners : 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 + set loop-value's gamemode to survival # !!! POPULATE INVENTORY !!!