Fixed some stuff

main
Anorak_1 2022-11-13 12:36:01 +01:00
parent 1cd3e1e0b4
commit 5355c26dd9
1 changed files with 23 additions and 21 deletions

View File

@ -451,27 +451,28 @@ function init_team_names():
loop 10 times: loop 10 times:
set {skybattle::team%loop-number%::name} to {_team%loop-number%} set {skybattle::team%loop-number%::name} to {_team%loop-number%}
function get_team(team: text): function get_team(team: text) :: text:
if {_team} is "IDList1": if {_team} is "IDList1":
return "Karmínová" set {_tname} to "Karmínová"
if {_team} is "IDList2": else if {_team} is "IDList2":
return "Jantarová" set {_tname} to "Jantarová"
if {_team} is "IDList3": else if {_team} is "IDList3":
return "Krémová" set {_tname} to "Krémová"
if {_team} is "IDList4": else if {_team} is "IDList4":
return "Limetková" set {_tname} to "Limetková"
if {_team} is "IDList5": else if {_team} is "IDList5":
return "Smaragdová" set {_tname} to "Smaragdová"
if {_team} is "IDList6": else if {_team} is "IDList6":
return "Azurová" set {_tname} to "Azurová"
if {_team} is "IDList7": else if {_team} is "IDList7":
return "Blankytná" set {_tname} to "Blankytná"
if {_team} is "IDList8": else if {_team} is "IDList8":
return "Nebeská" set {_tname} to "Nebeská"
if {_team} is "IDList9": else if {_team} is "IDList9":
return "Nachová" set {_tname} to "Nachová"
if {_team} is "IDList10": else if {_team} is "IDList10":
return "Švestková" set {_tname} to "Švestková"
return {_tname}
on block place of concrete: on block place of concrete:
remove 1 of event-block from player's inventory remove 1 of event-block from player's inventory
@ -491,7 +492,8 @@ on death of player: # victim, attacker
if {skybattle::%team of victim%::alive_number} is 0: if {skybattle::%team of victim%::alive_number} is 0:
set {skybattle::teams_alive_num} to {skybattle::teams_alive_num} - 1 set {skybattle::teams_alive_num} to {skybattle::teams_alive_num} - 1
remove team of victim from {skybattle::teams_alive::*} remove team of victim from {skybattle::teams_alive::*}
broadcast "Zemřel celý tým %get_team(team of victim)%" set {_vteam} to team of victim
broadcast "Zemřel celý tým %get_team({_vteam})%"
on respawn: on respawn:
if {skybattle::deadplayers::*} contains player's uuid: if {skybattle::deadplayers::*} contains player's uuid: