• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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.
 
Level 31
Joined
Jul 10, 2007
Messages
6,306
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