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!
I'm going to try and do this even though I'm not very good with triggers (you might want to let someone else come along and post some kind of better way of doing it ).
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
-------- You can replace this with any other form of defeat. --------
Game - Defeat (Owner of (Triggering unit)) with the message: Whatever
-------- This variable would initially be set to however many players there are. --------
Set herosLeft = (herosLeft - 1)
-------- This player group would contain all of the players who are playing. --------
Player Group - Remove (Owner of (Triggering unit)) from remainingPlayers
-------- This activates the trigger that checks to see if someone wins yet. --------
Trigger - Run Check For Winner <gen> (checking conditions)
And then the "Check For Winner" trigger would be this:
Events
Conditions
herosLeft Equal to 1
Actions
-------- This takes the player who hasn't lost yet and makes them win. --------
Player Group - Pick every player in remainingPlayers and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Use that, but remove the "Run Trigger..." just add an If - Then - Else and put the Conditions and Actions from "Check For Winner" to "HeroDies". If you understand..
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.