• 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 little problem, should be very easy.

Status
Not open for further replies.
Level 37
Joined
Aug 14, 2006
Messages
7,602
Heyy!

I have been stuck for a while because of one trigger I want to select all player 1 units, but don't select specific units from player 1. I currently have this trigger:

  • Unit Group - Pick every unit in TempGroup and do (Actions)
    • Loop - Actions
      • Unit - Kill (Picked unit)
How do I upgrade it, so it won't select specific units? The one who help will gain a reputation point. I hope you can answer soon!
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
  • Custom script: set bj_wantDestroyGroup = true
  • Unit Group - Pick every unit in (Units owned by (Player1)) and do (Actions)
    • Loop - Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Multiple ConditionsOr - Any (Conditions) are true
            • Conditions
              • (Unit-type of (Triggering unit)) Equal to (==) Footman
              • -------- Add more specific units here(if there are more) --------
        • Then - Actions
          • -------- What to do if it is a "specific unit" --------
          • Else - Actions
            • -------- What to do if it is not a "specific unit" --------
Self expanatory
 
Status
Not open for further replies.
Top