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

defeat/victory

Status
Not open for further replies.
Level 7
Joined
May 28, 2009
Messages
241
That might only work in melee maps this tutorial however is working on such a trigger, if the melee on should not work.

How can be 4 teams and 3 players? :p Bots on the road?

But if you're not making a melee map, the melee victory/defeat conditions won't work well, since it will also reveal you to other players if don't have a base.

You could have an ever running trigger that checks if there's 0 units owned by P1 (red) matching condition unit is a building equal to true (but remember to leak proof!). It could also check if a player's slot status equal to is playing too.
 
Level 3
Joined
Apr 20, 2010
Messages
46
He means 4 teams Of 3 players, IE: 4x 3 player teams.

  • WinLoseExample
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Dying unit) is A structure) Equal to True
    • Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Count structures controlled by (Picked player) (Exclude incomplete structures)) Equal to 0
            • Then - Actions
              • Game - Defeat (Picked player) with the message: Defeat!
            • Else - Actions
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Number of players in (All enemies of (Picked player))) Equal to 0
            • Then - Actions
              • Game - Victory (Picked player) (Show dialogs, Show scores)
            • Else - Actions
Fairly sure that'll work
 
Status
Not open for further replies.
Top