HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How to Tell when its the last hero standing??

08-14-2003, 02:44 AM#1
Naix
In my map I want to have the trigger when its the last person standing declare winner? How do I do that?
08-14-2003, 03:00 AM#2
Juvat
Do you want to have the last person standing, or the last unit (specifically hero)?
08-14-2003, 03:28 AM#3
Naix
Say there is 4 heroes in a region, and they fight. How can i tell who is the last one standing in that region? So that I could declare the winner and do special effects and stuff.
08-14-2003, 03:40 AM#4
cbc22
how about make a counter.

An integer that counts down to how many remaining heroes are left as one by one they die.



-----------------------------------------------------------------------
Event:
Unit-Dies

Condition:
(Unit is a Hero) Equal to True
(Triggering Unit) Equal to Hero01 OR (Triggering Unit) Equal to Hero02 OR (Triggering Unit) Equal to Hero03 OR (Triggering Unit) Equal to Hero04

Action:
Set HeroRemaining = HeroRemaining - 1
If (HeroRemaining <= 1)
Then
<Play Effects>
Else
08-14-2003, 03:55 AM#5
Naix
Eck thats complex =|

Any other ways?
08-14-2003, 04:16 AM#6
Naix
*BUMP*