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

Question on thorns-related ability

Status
Not open for further replies.
Level 2
Joined
Jul 5, 2006
Messages
12
Okay, so I am trying to create an ability that gives a unit a buff that gives it 100% damage return, similar to the Thorns Aura ability, but I would also like it to return the damage from targeted spells (chain lightning, firebolt, etc.) Is this possible?

I've been messing around with triggers, something like:

Event:
Any unit takes damage

Condition:
Unit has buff = Eye For An Eye ((That's what I call the spell))

Effects:
Damage (Attacking Unit) for (Damage done)

This trigger goes off, but does no damage (apparently the "Damage Done" get event doesn't work the way I'm trying to make it work. Anyone have any suggestions?
 
Level 2
Joined
Jul 5, 2006
Messages
12
...

Yes, the event is for sure triggering. I added an

Action:
Display chat string "!"

To the actions and, sure enough, if I had the buff and took damage it would start spamming "!", so I know it's triggering okay.

I am aware that the buff check condition and the damage taken event are sometimes... difficult, but I'm not sure how buggy they are. Buggy in what way? Buff check being really buggy would be tough, since many of the triggers in my map rely on it, (mostly) successfully right now.

I'm thinking some solution may be possible using variables, but I've been yet unable to impliment it.
 
Status
Not open for further replies.
Top