• 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.

How do i make a trigger that kills all units...

Status
Not open for further replies.
Level 2
Joined
Aug 10, 2009
Messages
10
How do i kill all units in a region owned by a player when a special unit dies? The player who loses his units are not to be defeated.

Thank you
 
Level 10
Joined
Aug 19, 2008
Messages
491
  • Some trigger
    • Events
      • Unit - Your Unit 0000 <gen> dies
    • Conditions
    • Actions
      • Unit Group - Pick all units in Your Region and do Actions
        • If/Then/Else //Whatever its name is
          • If - Conditions
            • (Owner of (Picked unit)) Equal to Your Player
          • Then - Actions
            • Unit - Kill (Picked unit)
          • Else - Actions
 
Level 4
Joined
Jul 19, 2007
Messages
76
  • Untitled Trigger 005
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to Footman
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Unit - Kill (Picked unit)
 
Status
Not open for further replies.
Top