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

Help with Hero Arena Victory Conditions Please.

Status
Not open for further replies.
Level 1
Joined
Dec 13, 2014
Messages
5
I have recently begun using the Warcraft 3 World editor, and I am currently working on a Hero Arena/ Survival map, in that every player will select their hero and be placed in a large arena, defeating mobs for xp and killing each other, like a last-man-standing map, but I cannot find a way through triggers to make it so that if your hero is the only one left, you win. I have made it that if your hero is killed you are defeated, but I can't figure out how to make it that if all other players have been defeated, you win. It doesn't seem to do it by default, and I've hit a brick wall in development. Any help would be greatly appreciated, thanks!
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
I would suggest to either put em all in a group like IcemanBo said or make an array of 12 (players) booleans and if a hero dies, the boolean of that player turns true. After that a check starts to run and if there is only one boolean false, then that player wins.

I haven't checked the hero survival map that LordDz posted but I think that they use a pretty similar system.
 
Status
Not open for further replies.
Top