• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Reincarnation Detection

Status
Not open for further replies.
Level 23
Joined
Apr 16, 2012
Messages
4,041
You cant AFAIK.
Unit - unit dies doesnt work because you technically dont die and I dont think you can catch a reincarnation as unit starts the effect of ability, ability being cast == reincarnation
so you have either to periodically check life of the unit or make reincarnation yourself trigger based.
PS: the 120 seconds wait between posts is reaaaaaaaaly lame :ogre_icwydt:
 
Level 14
Joined
May 22, 2010
Messages
362
I assume that you mean that the ankh and reincarnation abilities are dummy abilities.
I dont want the unit to actually die, and than get revived that might cause problems with other triggers.
Also this way there will be no cooldown the hero will be immortal.

Looks like I am going to have to import a complex system.
 
Level 20
Joined
Jul 14, 2011
Messages
3,213
As said, you have to periodically check if the unit life is 0, and play with a boolean to know if the ability is or isn't in cooldown.
 
Ehh

You cant AFAIK.

Lemme prove you all wrong

http://www.hiveworkshop.com/forums/jass-resources-412/extension-unit-event-172365/

JASS:
*    Events:    registered via Event API
*       static constant Event UnitEvent.REMOVE
*       static constant Event UnitEvent.DECAY
*       static constant Event UnitEvent.EXPLODE
*       static constant Event UnitEvent.RESURRECT
*       static constant Event UnitEvent.REINCARNATE
*       static constant Event UnitEvent.ANIMATE
*       static constant Event UnitEvent.START_REINCARNATE

edit
And GUI version by Bribe

http://www.hiveworkshop.com/forums/spells-569/unit-event-v2-0-0-0-a-201641/

spells_4102_screenshot_tnb.jpg



The two solutions above are better than using your Hydra solution ; )
 
Status
Not open for further replies.
Top