I need to create buff that will damage attackers.(like "Thorns" in WC3.)
So i created new Behavior(buff type) and edited "Combat:Damage response+" field: "Chance" set to 1, "Location" set to "Attacker", "Handled" set to my damage effect(its new effect and only "Amount" changed in it).
It cant understand why it doesnt working. Am i missed something or is there another way to do it? Help pls.
• Set a negative life regeneration [like twice the amount of damage you want]
• Set a short duration for the buff (like 0.5 or 0.7 second)
• In triggers, make a trigger : "Event: Any unit attack [Your unit] ==> Action: Apply buff [Your damage buff just created]". Maybe check for the even if there isn't a "Any unit deals damage to [Your unit].
That's the only way, from my little experience with the GE, that I could think of.
I made a behavior for my unit, which is having the Damage response -> Handled Effect set to a damage effect, the location set to defender. The damage effect target it set to Target Outer Unit.
I need to create buff that will damage attackers.(like "Thorns" in WC3.)
So i created new Behavior(buff type) and edited "Combat:Damage response+" field: "Chance" set to 1, "Location" set to "Attacker", "Handled" set to my damage effect(its new effect and only "Amount" changed in it).
It cant understand why it doesnt working. Am i missed something or is there another way to do it? Help pls.
Well, I'm not an expert, but here is an idea:
• Create the damage behavior of type Buff
• Set maximum stack to -1 (infinite)
• Set a negative life regeneration [like twice the amount of damage you want]
• Set a short duration for the buff (like 0.5 or 0.7 second)
• In triggers, make a trigger : "Event: Any unit attack [Your unit] ==> Action: Apply buff [Your damage buff just created]". Maybe check for the even if there isn't a "Any unit deals damage to [Your unit].
That's the only way, from my little experience with the GE, that I could think of.
@Dzuke911: Go
The issue is the Location field. It needs to be Defender, not Attacker.
If you want the effect to happen when taking damage, it is Defender. If you want it to happen when dealing damage, it is Attacker.
I made a behavior for my unit, which is having the Damage response -> Handled Effect set to a damage effect, the location set to defender. The damage effect target it set to Target Outer Unit.
@Demtrod: Go
@MasterWrath: Go
Thx! I just missed with Attacker/Defender. Now all working fine.