• 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.

'A Unit Dies' with and Ankh

Status
Not open for further replies.
Level 5
Joined
Oct 24, 2007
Messages
90
Hello everyone, I have a little problem here. The event 'A Unit Dies' does not recognize and activate when a hero with an Ankh of Reincarnation-type item dies. I do not know wether this is normal or not, but I would like to find out if there is a way to detect when a hero dies regardless if it has an Ankh or not. Any suggestions appreaciated. :grin:

Edit: Title - 'A Unit Dies with an* Ankh' (not and, whoops):xxd:
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Set Temp_Group_1 = Units in playable map area matching (matching unit is...)
  • Pick Every Unit in Temp_Group_1 and do actions
    • Loop
      • Add to (HP detection trigger) the event (Picked unit's health becomes 0,405)
  • Custom Script: call DestroyGroup(udg_Temp_Group_1)
Run this at 0.00 game time or at map initialization. Try adding "health becomes less than 0,406" or "equal to 0,405", don't know which will work.

Use this also if needed:
  • Events
    • Unit enters Playable map area
  • Conditions
    • Add some here if needed
  • Actions
    • Add to (HP detection trigger) the event ((Triggering unit's) health becomes 0,405)
 
Level 12
Joined
May 21, 2009
Messages
994
or

  • ankh
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) has an item of type Ankh of Reincarnation) Equal to False
    • Actions
      • -------- DO YOUR ACTIONS HERE --------
if its set to false then it means the unit dont have the ankh
 
Status
Not open for further replies.
Top