Wummi
Just Relax and Smile!
- Reaction score
- 58
Is reincarnation detected by the event "A unit dies"? I have a minigame where there are 10 heroes and they all have an ankh of reincarnation. I want the game to end when all heroes have died. So in the start, the interger variable HeroCount is 10.
Trigger 1:
Event -
A unit dies
Conditions -
Unit type of Triggering unit equals to Blademaster
Actions -
Set HeroCount = HeroCount - 1
Trigger 2:
Event -
HeroCount becomes equal to 0
Conditions -
Actions -
Defeat all players with the message Defeated!
Now for me I find that the game ends too early, while there are still people alive. Is it because when a blademaster dies (with an ankh) it counts as a HeroCount - 1?
Trigger 1:
Event -
A unit dies
Conditions -
Unit type of Triggering unit equals to Blademaster
Actions -
Set HeroCount = HeroCount - 1
Trigger 2:
Event -
HeroCount becomes equal to 0
Conditions -
Actions -
Defeat all players with the message Defeated!
Now for me I find that the game ends too early, while there are still people alive. Is it because when a blademaster dies (with an ankh) it counts as a HeroCount - 1?