- Joined
- Mar 19, 2008
- Messages
- 89
I need help. I am trying to make a trigger that damages all units except structures every x amount of seconds. For testing purposes x = 2.
Here is what I have so far.
Here is what I have so far.
-
Plague
-
Events
- Time - Every 2.00 seconds of game time
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Plague_sequence Less than 8
-
Then - Actions
-
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Picked unit) is A structure) Equal to False)) and do (Actions)
-
Loop - Actions
- Unit - Set life of (Picked unit) to ((Percentage life of (Picked unit)) x 0.88)%
-
Loop - Actions
- Set Plague_sequence = (Plague_sequence + 1)
-
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Picked unit) is A structure) Equal to False)) and do (Actions)
-
Else - Actions
- Countdown Timer - Start Timer_event as a One-shot timer that will expire in 150.00 seconds
- Countdown Timer - Create a timer window for (Last started timer) with title Next event:
- Set Timer_event_window = (Last created timer window)
- Set Plague_sequence = 0
- Trigger - Turn off (This trigger)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events