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

Take Damage

Status
Not open for further replies.
Level 13
Joined
Jul 16, 2012
Messages
679
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 40
Joined
Jun 9, 2011
Messages
13,183
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