PrisonLove
Hard Realist
- Reaction score
- 78
Simple, you need two integer variables, we'll call them Team1Kills, Team2Kills (assuming you have two teams)
When your criteria for a kill are satisfied then you increment the appropriate team's variable by 1. Then you check if the variable is >= 10. If it is, declare victory/defeat.
Assuming you criteria for a point is a hero killing a hero, do this.
It's rough, but that should achieve your desired effect.
When your criteria for a kill are satisfied then you increment the appropriate team's variable by 1. Then you check if the variable is >= 10. If it is, declare victory/defeat.
Assuming you criteria for a point is a hero killing a hero, do this.
Code:
EVENT
-A unit dies;
CONDITIONS
-Triggering Unit is a hero == true;
-Killing Unit is a hero == true;
-Owner of Triggering Unit is an enemy of Owner of Killing Unit
ACTIONS
-If (Triggering Unit belongs to Team 1)
-Team2Kills + 1;
if (Team2Kills >= 10)
-Pick every player in Team 2 and declare victory;
-Pick every player in Team 1 and declare defeat;
-Else if (Triggering Unit belongs to Team 2)
-Team1Kills + 1;
if (Team1Kills >= 10)
-Pick every player in Team 1 and declare victory;
-Pick every player in Team 2 and declare defeat;
It's rough, but that should achieve your desired effect.