• 🏆 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!

[General] Detect Animate Dead Units

Status
Not open for further replies.
Level 37
Joined
Aug 14, 2006
Messages
7,601
Hey.

How to Detect Animate Dead Units that are risen from death?

Trigger doesn't work with or without the condition:

  • Untitled Trigger 001
    • Events
      • Unit - A unit enters (Entire map)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Ghoul
    • Actions
      • Game - Display to (All players) the text: aaa
I want to add the risen units to a unit group.


Test map is attached.
 

Attachments

  • DETECT.w3x
    16.6 KB · Views: 82
Level 12
Joined
Mar 13, 2012
Messages
1,121
When the abilty is finished check for the Animate Dead buff, which all revived units gain.
 
Last edited:
Level 33
Joined
Mar 27, 2008
Messages
8,035
Do you have this Event in your map ?
  • Unit - A unit Spawns a summoned unit
If not, you're perfectly safe to do this;
  • Untitled Trigger 002
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
    • Actions
      • Unit - Kill (Summoned unit)
The unit is (Summoned unit)
 
Level 13
Joined
Sep 13, 2010
Messages
550
But summoned units are Revived units, Water elementals, etc. So it will work for those too! Don't forget to put a condition, and if you haven't added yet, do it.

  • Untitled Trigger 001
    • Events
      • Unit - A unit Spawns a summoned unit
    • Conditions
      • ((Triggering unit) has buff Animate Dead) Equal to (==) True
    • Actions
      • Game - Display to (All players) the text: aaa
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Umph geries ?
It should be (Summoned unit), not (Triggering unit).
And yes, units that are summoned via Animate Dead has the buff, so you can use that Condition to differentiate a spell between Animate Dead and other summon-type spells.
 
Status
Not open for further replies.
Top