• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Take Damage

Status
Not open for further replies.
actually, if you only need it for one specific unit you can do it yourself easily, since there is a unit takes damage event for one unit only.

If not, use a normal DDS (weeps dds ftw) and check if damaged unit is equal to the unit of your choise.

  • Untitled Trigger 001
    • Events
      • Unit - A unit Is attacked
    • Conditions
    • Actions
      • Trigger - Add to Untitled Trigger 002 <gen> the event (Unit - (Attacked unit) Takes damage)
Like this.... its work
but you cant remove a leak :/
 

Chaosy

Tutorial Reviewer
Level 41
Joined
Jun 9, 2011
Messages
13,248
In that case you can use a dds, or create your own dds.

I made a rather simple one, but you can just import one from the spell section. Note that 2 of the triggers is for a really poor unit indexer, you can skip that by using hashtables or using your own unit indexer.
http://www.hiveworkshop.com/forums/world-editor-help-zone-98/dds-attempt-need-opionions-230447/

edit: or well, to explain the method I used, the key is to create triggers by code. So each unit got their own trigger with the event unit X takes damage. And once a unit dies we remove the trigger. (jass needed)
 
Status
Not open for further replies.
Top