• 🏆 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!

Kill all units in region?

Status
Not open for further replies.
Level 4
Joined
Jun 4, 2009
Messages
52
I would just like to know how to kill all the units in X region.
I know it has to be simple, and I'm sure I've seen it, but, I just can't find it.

+Rep

(Btw, Mortar, I added Rep to you for your post on my other topic.)

(Also, how do you show the triggers in the little white pictures? o.o)
 
Level 4
Joined
Jun 4, 2009
Messages
52
  • Retard Defenders
    • Events
      • Destructible - Barrel of Explosives 0263 <gen> dies
    • Conditions
    • Actions
      • Destructible - Kill Barrel of Explosives 0264 <gen>
      • Destructible - Kill Barrel of Explosives 0265 <gen>
      • Destructible - Kill Barrel of Explosives 0266 <gen>
      • Destructible - Kill Barrel of Explosives 0267 <gen>
      • Destructible - Kill Barrel of Explosives 0268 <gen>
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units in Barrels <gen>) and do (Actions)
        • Loop - Actions
          • Unit - Kill (Picked unit)
      • Unit - Explode |CFFFF0303RETARD|r Defender 0028 <gen>
      • Unit - Explode |CFFFF0303RETARD|r Defender 0027 <gen>
Odd, it didn't work.

*Edit*
Nevermind, it works now.
+Rep
 
Level 19
Joined
Feb 25, 2009
Messages
2,004
Maybe with this should work:
  • Explode
    • Events
    • Conditions
    • Actions
      • Unit - Make |CFFFF0303RETARD|r Defender 0027 <gen> Explode on death
      • Unit - Make |CFFFF0303RETARD|r Defender 0028 <gen> Explode on death
      • Unit - Kill |CFFFF0303RETARD|r Defender 0027 <gen>
      • Unit - Kill |CFFFF0303RETARD|r Defender 0028 <gen>
 
Level 4
Joined
Jun 4, 2009
Messages
52
No, that wouldn't work.
Those units are already killed.
What I was trying to do was have all the units in that area to be killed when the explosives are 'detonated.'
Which would happen from attacking one of them.
My map is one of those 'Are you a retard' maps.
So, the 'retards' in the area would be killed.
 
Level 4
Joined
Jul 19, 2007
Messages
76
  • Untitled Trigger 001
    • Events
      • Destructible - Barrel of Explosives 0000 <gen> dies
      • Destructible - Barrel of Explosives 0001 <gen> dies
      • Destructible - Barrel of Explosives 0002 <gen> dies
    • Conditions
    • Actions
      • Destructible - Pick every destructible in Region 000 <gen> and do (Actions)
        • Loop - Actions
          • Destructible - Kill (Picked destructible)
      • Wait 2.00 seconds
      • Unit Group - Pick every unit in (Units in Region 000 <gen>) and do (Actions)
        • Loop - Actions
          • Unit - Kill (Picked unit)
 
Last edited:
Level 5
Joined
Apr 8, 2006
Messages
130
To do a trigger in your post type
  • to start and put a / in front of trigger to end it, it's like any other bb code just the word is trigger.
 
Level 13
Joined
Apr 15, 2008
Messages
854
To do a trigger in your post type
  • to start and put a / in front of trigger to end it, it's like any other bb code just the word is trigger.[/QUOTE]
  • Why don't you just say... Start with the tag [plain][TRIGGER] and at the end you have to put the tag
.[/plain]
Use the tags to give such examples ;)
 
Status
Not open for further replies.
Top