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

HIVE

OutsiderXE
OutsiderXE
Hi. You need to replace the specific unit event with a generic one and a condition. E.g. instead of
Event: Thrall enter region

use

Event: Unit enters region
Condition: Entering unit equal to Thrall
deepstrasz
deepstrasz
Ah, I see. Thanks. I guess Thrall in the condition is the unit variable yes and not the selected unit on the map.
Well, work work.
OutsiderXE
OutsiderXE
Yes, exactly.
deepstrasz
deepstrasz
Hmm. How to do that with A Unit Takes damage events?
For instance you can add the event to a trigger with the action "Trigger - Add New Event" but what after? There's no condition to reflect the damaged target only the damage source.
  • Wow
Reactions: San
OutsiderXE
OutsiderXE
I've never used that damage event. My workarounds usually involve reacting to attack events with some time delay or comparing unit life periodically.
Vinz
Vinz
There's no condition to reflect the damaged target only the damage source.
Triggering Unit.
deepstrasz
deepstrasz
Hopefully, the code understands who that is referring to.
Top