On the attacked unit you can put a damage response (on a buff behavior). there is a little box in there somewhere that says "defender" and you will need to set that to "attacker". Put this behavior on the unit with thorns. Set the chance (at the top) to 1. Now, 100% of the time a unit with that buff is struck; something will happen to the attacker. It is early and I forget how I did the damage apply part; brain farting, and I gotta go in a min. bzzz...bzzz...bzzzz... If you don't get help elsewhere by the time I return from work in... 15 hours... I will post how I did the damage apply part. Someone else should have the rest by then though.
% thorns can't be done as far as I'm aware. Use triggers if you don't have many units. Forget the whole thing if you have lots of units.
You can have a thorns aura that deals a flat amount to attackers.
You can also modify a unit's weapon to check for a thorns aura, and then deal damage based on it's attack damage to itself, but this is clumsy and painstakingly slow.
I made my thorns aura, and i know how to return set damage. But i cant figure out how to make a damage effect that returns damage as a percentage.
Example.
I want my thorns to return 12% damage. There a way to do this without triggers?
On the attacked unit you can put a damage response (on a buff behavior). there is a little box in there somewhere that says "defender" and you will need to set that to "attacker". Put this behavior on the unit with thorns. Set the chance (at the top) to 1. Now, 100% of the time a unit with that buff is struck; something will happen to the attacker. It is early and I forget how I did the damage apply part; brain farting, and I gotta go in a min. bzzz...bzzz...bzzzz... If you don't get help elsewhere by the time I return from work in... 15 hours... I will post how I did the damage apply part. Someone else should have the rest by then though.
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418
% thorns can't be done as far as I'm aware. Use triggers if you don't have many units. Forget the whole thing if you have lots of units.
You can have a thorns aura that deals a flat amount to attackers.
You can also modify a unit's weapon to check for a thorns aura, and then deal damage based on it's attack damage to itself, but this is clumsy and painstakingly slow.
Behavior type:Buff > Vital Leeched from Damage Dealt (negative value)
This returns damage as a set value. I'm looking to return damage as a percentage of the attackers damage.
I just checked this, and was pleasantly surprised to see that it works. It has to be applied to enemy units though, instead of friendly ones like WC3.
It returns it as a percentage. If you set it to -0.15, it will return 15% of damage taken (after armor) to the attacker.
@TyaStarcraft: Go
Tried vitals fraction? Its in bother buffs and damage effects.
@hobbidude: Go
Vital fractions is the cost it takes to use the ability.
@TyaStarcraft: Go
I must have tested it wrong, i was getting a static 1 damage regardless of their damage output. Thanks
Ok so i ran into a huge error redoing this ability. My SC crashes right as someone attacks the target with thorns aura but i had it working at first.
Buff 1 -> Combat response-> chance 1 / location: defender / handled effect: apply behavior
Apply behavior -> chance 1 / effect: Thorns (buff 2)
Buff 2 - > Vital Leached from Damage Dealt -0.12
Is my SC broken or did i do something wrong to cause it to crash with this aura?
Ok so i ran into a huge error redoing this ability. My SC crashes right as someone attacks the target with thorns aura but i had it working at first.
Buff 1 -> Combat response-> chance 1 / location: defender / handled effect: apply behavior
Apply behavior -> chance 1 / effect: Thorns (buff 2)
Buff 2 - > Vital Leached from Damage Dealt -0.12
Is my SC broken or did i do something wrong to cause it to crash with this aura?
In this case instead of damage response you should make another aura to apply behavior to enemy units