*hopefully* fixed 7 errors preventing skript load
							parent
							
								
									3b4b69999a
								
							
						
					
					
						commit
						4e269e9131
					
				| 
						 | 
					@ -55,10 +55,10 @@ command /minigame_skybattle_start:
 | 
				
			||||||
        clear {skybattle::gaming_players::*}
 | 
					        clear {skybattle::gaming_players::*}
 | 
				
			||||||
        loop 10 times:
 | 
					        loop 10 times:
 | 
				
			||||||
            loop entries of team "IDList%loop-number%":
 | 
					            loop entries of team "IDList%loop-number%":
 | 
				
			||||||
                add loop-value2 to {skybattle::gaming_players::*}
 | 
					                add loop-value to {skybattle::gaming_players::*}
 | 
				
			||||||
                add loop-value2 to {skybattle::IDList%loop-number%::players::*}
 | 
					                add loop-value to {skybattle::IDList%loop-number-1%::players::*}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                set {skybattle::players::%loop-value2's uuid%::team} to "IDList%loop-number2%"
 | 
					                set {skybattle::players::%loop-value's uuid%::team} to "IDList%loop-number-1%"
 | 
				
			||||||
        broadcast "Načítám minihru Oblačný Souboj"
 | 
					        broadcast "Načítám minihru Oblačný Souboj"
 | 
				
			||||||
        send title "§2Oblačný Souboj" to all players
 | 
					        send title "§2Oblačný Souboj" to all players
 | 
				
			||||||
        set {skybattle::game_status} to "init"
 | 
					        set {skybattle::game_status} to "init"
 | 
				
			||||||
| 
						 | 
					@ -95,7 +95,7 @@ command /minigame_skybattle_start:
 | 
				
			||||||
                    clear {skybattle::IDList%loop-number%::alive_players::*}
 | 
					                    clear {skybattle::IDList%loop-number%::alive_players::*}
 | 
				
			||||||
                    set {skybattle::IDList%loop-number%::alive_number} to 4
 | 
					                    set {skybattle::IDList%loop-number%::alive_number} to 4
 | 
				
			||||||
                    loop entries of team "IDList%loop-number%":
 | 
					                    loop entries of team "IDList%loop-number%":
 | 
				
			||||||
                        add loop-value2 to {skybattle::IDList%loop-number%::alive_players::*}
 | 
					                        add loop-value to {skybattle::IDList%loop-number-1%::alive_players::*}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                set {skybattle::current_arena} to {skybattle::current_arena} + 1
 | 
					                set {skybattle::current_arena} to {skybattle::current_arena} + 1
 | 
				
			||||||
                set {skybattle::teams_alive_num} to 10
 | 
					                set {skybattle::teams_alive_num} to 10
 | 
				
			||||||
| 
						 | 
					@ -208,7 +208,7 @@ command /skybattle_setspectatorspawn <number>:
 | 
				
			||||||
        if arg-1 is 3:
 | 
					        if arg-1 is 3:
 | 
				
			||||||
            set {skybattle::arena3::spectatorlocation} to player's location
 | 
					            set {skybattle::arena3::spectatorlocation} to player's location
 | 
				
			||||||
            send "Spectator pro arenu 3 nastaven"
 | 
					            send "Spectator pro arenu 3 nastaven"
 | 
				
			||||||
        if arg-1 is not 1 or arg-1 is not 2 or arg-1 is not 3:
 | 
					        if arg-1 is not 1 and arg-1 is not 2 and arg-1 is not 3:
 | 
				
			||||||
            send "You need to specify arena 1-3"
 | 
					            send "You need to specify arena 1-3"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
command /skybattle_setspawner <number> <number>:
 | 
					command /skybattle_setspawner <number> <number>:
 | 
				
			||||||
| 
						 | 
					@ -226,7 +226,7 @@ command /skybattle_setspawner <number> <number>:
 | 
				
			||||||
            if arg-1 is 3:
 | 
					            if arg-1 is 3:
 | 
				
			||||||
                set {skybattle::arena3::spawn_location::%arg-2%} to player's location
 | 
					                set {skybattle::arena3::spawn_location::%arg-2%} to player's location
 | 
				
			||||||
                send "Set spawn location %arg-2% for Sky Battle" to player
 | 
					                send "Set spawn location %arg-2% for Sky Battle" to player
 | 
				
			||||||
            if arg-1 is not 1 or arg-1 is not 2 or arg-1 is not 3:
 | 
					            if arg-1 is not 1 and arg-1 is not 2 and arg-1 is not 3:
 | 
				
			||||||
                send "You must specify arena 1-3"
 | 
					                send "You must specify arena 1-3"
 | 
				
			||||||
            if arg-2 < 0:
 | 
					            if arg-2 < 0:
 | 
				
			||||||
                send "You must specify a number from 1-10"
 | 
					                send "You must specify a number from 1-10"
 | 
				
			||||||
| 
						 | 
					@ -314,7 +314,7 @@ function init_team_names():
 | 
				
			||||||
on place:
 | 
					on place:
 | 
				
			||||||
    #if {skybattle::game_status} is "playing":
 | 
					    #if {skybattle::game_status} is "playing":
 | 
				
			||||||
    if name of held item is "§7Blocks":
 | 
					    if name of held item is "§7Blocks":
 | 
				
			||||||
        give helt item to the player
 | 
					        give held item to the player
 | 
				
			||||||
 | 
					
 | 
				
			||||||
on death of player: # victim, attacker
 | 
					on death of player: # victim, attacker
 | 
				
			||||||
    add victim's uuid to {skybattle::deadplayers::*}
 | 
					    add victim's uuid to {skybattle::deadplayers::*}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue