• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] I need help with plague trigger.

Status
Not open for further replies.
Level 4
Joined
Mar 19, 2008
Messages
89
:eekani: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.

  • 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)%
          • Set Plague_sequence = (Plague_sequence + 1)
        • 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)
But all things in the map are damaged:cry:. Can anyone help me?:ugly:
 
Level 4
Joined
Mar 19, 2008
Messages
89
Thank you both for reply. I will definitely use this. The death and decay idea is an interesting idea. I might use it. +rep for both.
 
Last edited:
Status
Not open for further replies.
Top