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!
HI.I have am learning about the trigers but it so hard for me.I dont understand anything.That is why i am asking if someone can help me how can i make Victory/Defeat Conditions?In my map you need to kill the enemy Hero and thats it.
Nice, but what if the enemy hero is not an Archmage? I assume that you have more than one heros in your map, so here's a more efficient way to do that:
First of all, create two group variables called LosingGroup and WinningGroup
Victory Conditions
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
Set LosingGroup = (All enemies of (Owner of (Killing unit)))
Set WinningGroup = (All allies of (Owner of (Killing unit)))
Player Group - Pick every player in LosingGroup and do (Game - Defeat (Picked player) with the message: Pwnd!)
Player Group - Pick every player in WinningGroup and do (Game - Victory (Picked player) (Show dialogs, Show scores))
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.