10 kills -> win

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.

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.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top