• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] A crazy trigger that I can't make

Status
Not open for further replies.
Level 8
Joined
Feb 20, 2007
Messages
338
Depends on what is in your map, how may players, what units are bored to death, etc.

Maybe a loop action that picks all units of X condition and sets a value to them of say 600 seconds (10 minutes you see).

Then have another looping event that minuses one off of each unit each second. When the countdown gets to Zero the unit goes boom!.

Then to reset the unit each time it is selected or ordered or something set the custom value of the selected unit to 600.

Perhaps you might want a trigger that calls attention to units when they are down to 30 seconds or so?

Again I do not know your map so I can not say exactly how you should go about applying this.
 
Level 5
Joined
Aug 2, 2004
Messages
65
If by the remote chance that this is a genuine request for help although worded parculiarly, then give this a go:

  • Reset Timer
    • Events
      • Unit - A unit Is attacked
      • Unit - A unit Is issued an order targeting a point
      • Unit - A unit Is issued an order targeting an object
      • Unit - A unit Is issued an order with no target
    • Conditions
    • Actions
      • Unit - Set the custom value of (Ordered unit) to 0
      • Unit - Set the custom value of (Attacked unit) to 0
      • Unit - Set the custom value of (Attacking unit) to 0
  • Kill Timer
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Custom value of (Picked unit)) Greater than or equal to 10
            • Then - Actions
              • Unit - Kill (Picked unit)
            • Else - Actions
              • Unit - Set the custom value of (Picked unit) to ((Custom value of (Picked unit)) + 1)
Two gui triggers which when used will give all units on the map a 10 second timer, if the units are not issued an order or do not attack (or get attacked by) anything then they die in 10 seconds.

Could also add a buff which they get rather than dieing so that players have a warning, when the buff expires then the unit dies. Something like a 99999 damage swp? Possibilities are endless.
 
Status
Not open for further replies.
Top