• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 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!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Random Question

Status
Not open for further replies.
Level 7
Joined
Nov 19, 2007
Messages
253
Hello everyone!

I wanted to ask a question. Whould this trigger detect healing?
  • Untitled Trigger
    • Events
      • Unit - Some Unit Takes damage
    • Conditions
      • (Damage taken) Less than 0.00
    • Actions
      • Set damage = (Damage taken)
Logicly thinking it should detect healing, atleast from spells like holy light, healing wave...
 

Bannar

Code Reviewer
Level 26
Joined
Mar 19, 2008
Messages
3,140
You can detect 'healing' with 'event - life of unit becomes greater than' - although it gonna fire with normal unit's regeneration too. Thats why refering to spells which cause unit to be healed is better option.

Your trigger could detect healing only if you use this little trick:
  • Unit - Cause (Triggering unit) to damage (Triggering unit), dealing [b]-500.00[/b] damage of attack type Spells and damage type Normal
Usually healing isn't done that way, but via SetUnitLife - what doesn't fire DamageEvent.
 
Level 10
Joined
Nov 19, 2011
Messages
516
I have Polish version of editor, so...
Can anyone tell what it is? Is it the same trigger like mine "Unit is the target of attack"? I realy can't find unit takes damage. It would be also nice if somone know how I can change language of editor to English. It would be easier to make anything, rather than changeing even custom unit descreptions to English.
 
Level 10
Joined
Nov 19, 2011
Messages
516
Why not this way?

Hello everyone!

I wanted to ask a question. Whould this trigger detect healing?
  • Untitled Trigger
    • Events
      • Unit - Some Unit Takes damage
    • Conditions
      • (Damage taken) Less than 0.00
    • Actions
      • Set damage = (Damage taken)
Logicly thinking it should detect healing, atleast from spells like holy light, healing wave...

  • Untitled Trigger
    • Events
      • Unit - Some Unit Takes damage
    • Conditions
      • (Damage taken) Less than 0.00
    • Actions
      • Quest message - send tip to all players "Healing spell detected!"
This way you will know for sure! :D
 
Status
Not open for further replies.
Top