So basically, I have a survival map with 4 players. Currently I have set up when a player (Player 3) dies, player (Player 3) End game in defeat. Like that but for each individual player.
I can't think of how to make a trigger for when players 1 - 4 are dead then it ends the game for players 1 - 4. So everyone looses at once.
Make 4 new variables that type is "Unit". First "Set variable" - You can do something like "Hero unit" = "Hero unit in your map" Then you can use Conditions like "Hero unit == alive" etc.
Have you checked Blizzard trigger tutorial? I learned to change variable types after that tutorial. That mission had condition something like Ultralisk is alive == false condition.
So basically, I have a survival map with 4 players. Currently I have set up when a player (Player 3) dies, player (Player 3) End game in defeat. Like that but for each individual player. I can't think of how to make a trigger for when players 1 - 4 are dead then it ends the game for players 1 - 4. So everyone looses at once.
easy...
EVENT: every 0.5 seconds of gametime
CONDITIONS:
if (player1's unit) is dead
if (player2's unit) is dead
if (player3's unit) is dead
if (player4's unit) is dead
ACTIONS: pick each player in player group (preset/all players) and do ACTIONS: end game in defeat for picked player
hope this helps
@thepumaman1: Go
Yeah, thats what I was trying to do thanks. How did you do your conditions, like what condition did you use?
- I cant seem to figure out the If (player3's unit) is dead, all i get is and, comparison, not, or, text has been set, within bounds.
idk, I can do actions and events fine but with conditions I get confused easily
Make 4 new variables that type is "Unit". First "Set variable" - You can do something like "Hero unit" = "Hero unit in your map" Then you can use Conditions like "Hero unit == alive" etc.
Have you checked Blizzard trigger tutorial? I learned to change variable types after that tutorial. That mission had condition something like Ultralisk is alive == false condition.
Enjoy the tutorial: http://us.battle.net/sc2/en/game/maps-and-mods/tutorials/trigger/
You can start to read from "Variables!" part of tutorial (at page 1/4)