i got a Real-variable starting at 10, but I need to make a trigger like this:
Event - Specific unit owned by player 1 to 10 dies
Action - Set HumanCountdown = HumanCountdown - 1.00
The specific unit is in this variable: HumanBuilder[1] = Red specific unit and [2] = Blue specific unit and so on. Highest is [10] = Light Blue.
This is what i got so far:
But aren't there a way do to this, without a periodic time event?
EDIT: Just tried this trigger again and the HumansCountdown is just keeping going down -10 per second. It aren't checking the Condition.
Event - Specific unit owned by player 1 to 10 dies
Action - Set HumanCountdown = HumanCountdown - 1.00
The specific unit is in this variable: HumanBuilder[1] = Red specific unit and [2] = Blue specific unit and so on. Highest is [10] = Light Blue.
This is what i got so far:
Trigger:
- Humans Die
- Events
- Time - Every 1.00 seconds of game time
- Conditions
- Actions
- For each (Integer A) from 1 to 10, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (HumanBuilder[(Integer A)] is dead) Equal to True
- Then - Actions
- Set HumansCountdown = (HumansCountdown - 1.00)
- Set HumanBuilder[(Integer A)] = No unit
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- For each (Integer A) from 1 to 10, do (Actions)
- Events
But aren't there a way do to this, without a periodic time event?
EDIT: Just tried this trigger again and the HumansCountdown is just keeping going down -10 per second. It aren't checking the Condition.