• 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] units Die Winning Condition.

Status
Not open for further replies.
Level 5
Joined
Jul 8, 2007
Messages
146
How do I make it so whenever a unit(we'll call it unit X) dies his owner is defeated and when say 5/6 players are dead the last one standing is victorious. Then as a seperate trigger (pretend it is another map per say) Like a player can do -ally Blue to become his ally so now he would only have to kill the other 4 players' unit X to win. In other words however many are allied at a point would win if the others whom are not allied with them die.
I know this sounds extremely confusing but if you'd like to help me, please e-mail me to [email protected] or aim to phire126 :)

THANKS TO ALL OF YOU GUYS. :smile:
 
Level 4
Joined
Jul 30, 2007
Messages
79
  • Defeat trigger
    • Events
      • Unit - A unit Dies
    • Conditions
      • Dieing Unit Equal to (the important unit u want )
    • Actions
      • Game - Defeat Owner of Dieing Unit with the message: Defeat!
      • Set Victory = Victor+1
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Victory = Number of Players Playing
        • Then - Actions
          • Game - Victory Owner of Killing Unit (Show dialogs, Show scores)
        • Else - Actions
          • Do nothing
Victory would just be an integer and players playing would be something you would have to setup on startup checking the number of people playing

when you add in alliances it get MUCH more complicated
also if there are npc's on the map you would have to be more specific with the victory condition than just owner of killing unit

but this will give you an idea of what it would look like
 
Status
Not open for further replies.
Top