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

Status
Not open for further replies.
Level 37
Joined
Aug 14, 2006
Messages
7,601
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