• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Every unit dead?

Status
Not open for further replies.
Level 17
Joined
Jun 17, 2010
Messages
2,275
  • Victory Condition
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Triggering unit)) is an enemy of (Owner of (Killing unit))) Equal to True
          • (Number of units in (Units owned by (Owner of (Triggering unit)))) Equal to 0
        • Then - Actions
          • Game - Victory (Owner of (Killing unit)) (Show dialogs, Show scores)
          • Game - Defeat (Owner of (Triggering unit)) with the message: Defeat!
        • Else - Actions
 
Level 17
Joined
Jun 17, 2010
Messages
2,275
  • Team win
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Triggering unit)) is an enemy of (Owner of (Killing unit))) Equal to True
          • (Number of units in (Units owned by (Owner of (Triggering unit)))) Equal to 0
        • Then - Actions
          • Game - Defeat (Owner of (Triggering unit)) with the message: Defeat!
          • For each (Integer A) from 1 to (Number of players in (All enemies of (Owner of (Killing unit)))), do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Number of units in (Units owned by (Player((Integer A))))) Equal to 0
                • Then - Actions
                  • For each (Integer B) from 1 to (Number of players in (All allies of (Owner of (Killing unit)))), do (Actions)
                    • Loop - Actions
                      • Game - Victory (Player((Integer B))) (Show dialogs, Show scores)
                • Else - Actions
        • Else - Actions
If you dont want the team to win then use.
  • Solo win
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Triggering unit)) is an enemy of (Owner of (Killing unit))) Equal to True
          • (Number of units in (Units owned by (Owner of (Triggering unit)))) Equal to 0
        • Then - Actions
          • Game - Defeat (Owner of (Triggering unit)) with the message: Defeat!
          • For each (Integer A) from 1 to (Number of players in (All enemies of (Owner of (Killing unit)))), do (Actions)
            • Loop - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Number of units in (Units owned by (Player((Integer A))))) Equal to 0
                • Then - Actions
                  • Game - Victory (Owner of (Killing unit)) (Show dialogs, Show scores)
                • Else - Actions
        • Else - Actions
 
Status
Not open for further replies.
Top