Im trying to make a trigger where the player has to kill a specific number of enemy unit to activate a victory trigger.
I made this so far but it doesn't seem to work I don't know whats wrong with it.
I made an integer type variable named living.
Why doesn't it work?
Can anyone help me fix this trigger?...
Thanks
I made this so far but it doesn't seem to work I don't know whats wrong with it.
I made an integer type variable named living.
-
Events
-
Time - Elapsed game time is 1.00 seconds
-
-
Conditions
-
Actions
-
Set living = 6
-
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
(Owner of (Triggering unit)) Equal to Player 7 (Green)
-
-
Actions
-
Set living = (living - 1)
-
Game - Display to (All players) for 5.00 seconds the text: You killed an enemy unit
-
-
Events
-
Time - Elapsed game time is 1.00 seconds
-
-
Conditions
-
living Equal to 0
-
-
Actions
-
Game - Display to (All players) the text: You win!
-
Why doesn't it work?
Can anyone help me fix this trigger?...
Thanks