[Trigger] Need help with this

Status
Not open for further replies.

hellwolf

H

hellwolf

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.

  • Events
    • Time - Elapsed game time is 1.00 seconds
  • Conditions
  • Actions
    • Set living = 6
then I wanted the player to kill a specific number of Player 7's (an enemy player) units

  • 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
Then I made the winning message like this to see if the trigger above works.

  • Events
    • Time - Elapsed game time is 1.00 seconds
  • Conditions
    • living Equal to 0
  • Actions
    • Game - Display to (All players) the text: You win!
but it doesn't work the variable doesn't seem to be subtracting.
Why doesn't it work?
Can anyone help me fix this trigger?...

Thanks
 
[bump]
Hello?....anyone?...can anyone please help me?...

14 views and 0 reply... :(
 
Last edited by a moderator:
I know your problem(lol)Just wait a second.
There!Look at the 3 attached pictures!
Edit:Ive just added a map with the 3 triggers!
 

Attachments

  • 1.PNG
    1.PNG
    4.4 KB · Views: 101
  • 2.PNG
    2.PNG
    5.9 KB · Views: 100
  • 3.PNG
    3.PNG
    10.7 KB · Views: 139
  • Living6.w3x
    Living6.w3x
    16.8 KB · Views: 78
Status
Not open for further replies.
Back
Top