Reincarnation vs Real Death

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?
 

sarkurayboy

New Member
Reaction score
7
Trigger 1:
Event -
A unit dies
Conditions -
Unit type of Triggering unit equals to Blademaster
Actions -
Set HeroCount = HeroCount - 1

"Conditions -
Unit type of Triggering unit equals to Blademaster "

Why not add another condition , Triggering Unit has item = Ankh Equal to False
 

DuelPlayer

Member
Reaction score
21
It will not be detected or else Dota would have the problem because of the aegis.
If i am not wrong, you are making the Blademasters, Burning Legion related game?
 

Jedi

New Member
Reaction score
63
You can use "unit uses an item" event with ankh, "unit dies" doesn't work.
 

canons200

New Member
Reaction score
50
No, Reincarnation is not detected by the "A unit Dies" event.

yes, bogrim is right, because i test it before, it won't work. However there is solution at hiveworkshop because i think it is a bit complicated, so i replace the ability with other.
 

Wummi

Just Relax and Smile!
Reaction score
58
Thanks everyone, and @DuelPlayer, I'm not making a Blademasters, Burning Legions game.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top