Added message when whole team gets killed
parent
60544cc959
commit
1cd3e1e0b4
|
@ -451,6 +451,28 @@ function init_team_names():
|
|||
loop 10 times:
|
||||
set {skybattle::team%loop-number%::name} to {_team%loop-number%}
|
||||
|
||||
function get_team(team: text):
|
||||
if {_team} is "IDList1":
|
||||
return "Karmínová"
|
||||
if {_team} is "IDList2":
|
||||
return "Jantarová"
|
||||
if {_team} is "IDList3":
|
||||
return "Krémová"
|
||||
if {_team} is "IDList4":
|
||||
return "Limetková"
|
||||
if {_team} is "IDList5":
|
||||
return "Smaragdová"
|
||||
if {_team} is "IDList6":
|
||||
return "Azurová"
|
||||
if {_team} is "IDList7":
|
||||
return "Blankytná"
|
||||
if {_team} is "IDList8":
|
||||
return "Nebeská"
|
||||
if {_team} is "IDList9":
|
||||
return "Nachová"
|
||||
if {_team} is "IDList10":
|
||||
return "Švestková"
|
||||
|
||||
on block place of concrete:
|
||||
remove 1 of event-block from player's inventory
|
||||
|
||||
|
@ -469,6 +491,7 @@ on death of player: # victim, attacker
|
|||
if {skybattle::%team of victim%::alive_number} is 0:
|
||||
set {skybattle::teams_alive_num} to {skybattle::teams_alive_num} - 1
|
||||
remove team of victim from {skybattle::teams_alive::*}
|
||||
broadcast "Zemřel celý tým %get_team(team of victim)%"
|
||||
|
||||
on respawn:
|
||||
if {skybattle::deadplayers::*} contains player's uuid:
|
||||
|
|
Loading…
Reference in New Issue