• 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 to make this

Status
Not open for further replies.
Level 7
Joined
Jan 13, 2008
Messages
248
when all structures in team 2 is dead team 1 victorie and the same for bouth...

SHow me the trigger...
 
Level 4
Joined
Dec 16, 2007
Messages
134
If u mean about total units then here is the trigger:

  • Untitled Trigger 014
    • Events
      • Unit - A unit owned by Player 2 (Blue) Dies
    • Conditions
      • (Number of units in (Units owned by Player 2 (Blue))) Equal to 0
    • Actions
      • Game - Victory Player 1 (Red) (Show dialogs, Show scores)
      • Game - Defeat Player 2 (Blue) with the message: Defeat!
 
Level 7
Joined
Jan 13, 2008
Messages
248
i mean its 2 teams... team 1= player 1 2 3 4 and team 2 = player 5 6 7 8 and player 1 and player 5 have buildings and when team kill all those buildings its gona be victorie and for the team.....
 
Level 24
Joined
May 20, 2007
Messages
3,283
Well simply go to forces,or that can simply be changed while hosting a map

Team 1
has player 1,2,3,4,5
Team 2
has player 6,7,8,9,10

It can be changed into the forces screen,at the player settings option,but you must have all melee triggers active in order to work
 
Level 7
Joined
Jan 13, 2008
Messages
248
this aint working............................ i dont get it to work porperly any one who can look at my map and edit it so when all buildings in team 1 team 2 wins and for bouth teams...
 
Last edited:
Level 7
Joined
Jan 13, 2008
Messages
248
na dude like this. if team 1 kill all buildings in team 2 team 1 wins... but the thing is all players dont start with buildings only 1 player does.... so in every team 1 player start with buildings.... so when team 1 kill team 2 all structures team 1 wins... can sum one help me plz..
 
Level 15
Joined
Aug 14, 2007
Messages
936
Dude, try using the Vitory/Defeat conditions in melee triggers

Else

Try this
Map initialisation
Event - Map initialization
condition - None
Action - For Loop 1 to 5
Add "Player(IntegerA)" to Team1(PlayerGroup)
For Loop 6 to 10
Add "Player(IntegerA)" to Team2(PlayerGroup)


RemovingPlayers
Event - A unit dies
Condition - Number of units owned by Owner of Dying Unit Equal 0
Actions - If Owner of Dying unit is an ally of Player1
then
Remove Owner of Dying Unit from Team1
else
Remove Owner of Dying Unit from Team2
if Count Player in Team1 equal 0
then Game- Message to all players "Team1 wins"
else
if Count Player in Team2 equal 0
then Game -Message to all players "Team2 wins"
else Do Nothing

If you want to defeat them, do it accordingly, this should work if you understand it properly, questions? Email me at [email protected], because i seldom do forums :)
 
Level 3
Joined
Feb 28, 2008
Messages
31
  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Units owned by Player 5 (Yellow) matching ((((Matching unit) is Dead) Equal to False) and (((Matching unit) is A structure) Equal to True)))) Equal to 0
        • Then - Actions
          • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Game - Victory (Picked player) (Show dialogs, Show scores))
          • Player Group - Pick every player in (All allies of Player 5 (Yellow)) and do (Game - Defeat (Picked player) with the message: Defeat!)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Number of units in (Units owned by Player 1 (Red) matching ((((Matching unit) is Dead) Equal to False) and (((Matching unit) is A structure) Equal to True)))) Equal to 0
        • Then - Actions
          • Player Group - Pick every player in (All allies of Player 5 (Yellow)) and do (Game - Victory (Picked player) (Show dialogs, Show scores))
          • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Game - Defeat (Picked player) with the message: Defeat!)
        • Else - Actions
When Player 5 has no living buildings him and his allies lose, and the allies of Player 1 win. And vice-versa.
This what you meant?
 
Level 4
Joined
Mar 6, 2007
Messages
73
Try this :
  • Defeat Humans
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
      • (Number of living Human Barrack units owned by Player 1 (Red)) Less than or equal to 0
      • (Number of living Human Barrack units owned by Player 2 (Blue)) Less than or equal to 0
      • (Number of living Human Barrack units owned by Player 3 (Teal)) Less than or equal to 0
      • (Number of living Human Barrack units owned by Player 4 (Purple)) Less than or equal to 0
      • (Number of living Human Barrack units owned by Player 5 (Yellow)) Less than or equal to 0
      • (Number of living Human Barrack units owned by Player 6 (Orange)) Less than or equal to 0
    • Actions
      • Game - Defeat Player 1 (Red) with the message: You didnt succeed t...
      • Game - Defeat Player 2 (Blue) with the message: You didnt succeed t...
      • Game - Defeat Player 3 (Teal) with the message: You didnt succeed t...
      • Game - Defeat Player 4 (Purple) with the message: You didnt succeed t...
      • Game - Defeat Player 5 (Yellow) with the message: You didnt succeed t...
      • Game - Defeat Player 6 (Orange) with the message: You didnt succeed t...
      • Game - Victory Player 7 (Green) (Show dialogs, Show scores)
      • Game - Victory Player 8 (Pink) (Show dialogs, Show scores)
      • Game - Victory Player 9 (Gray) (Show dialogs, Show scores)
      • Game - Victory Player 10 (Light Blue) (Show dialogs, Show scores)
      • Game - Victory Player 11 (Dark Green) (Show dialogs, Show scores)
      • Game - Victory Player 12 (Brown) (Show dialogs, Show scores)
 
Status
Not open for further replies.
Top