In my map I have weapon with effect, that applies behavior (0.1s duration, fatal damage response that is doing some things - for instance morph damaged unit, restore its health and apply behavior) on damaged unit. Now I need to detect in trigger, who applied behavior to this unit when damage response buff activated.
Event - effect used is useless. Now I have it done via periodic event and checking for behavior, that applies damage response, but I need to know who exacly damaged that buff. Trigger with fatal damage doesn't work (maybe, because wounded unit is still alive).
If your effect applies the behavior, you could make a trigger with the event any unit uses ability (whatever its called). Then make if statements saying if owner of triggering unit is say, player 1, then do whatever you wanted to do to the unit to put the behavior on the unit.
I'm not sure because I'm not looking at the editor right now, but there might be a unit has behavior, or something similar, as an event. Then that would work too.
Ok. Well you can probably filter it yourself. Under what "Conditions" is your "Set" Effect used? How is it triggered per say. (ie. A button in the command card of a unit, triggers, etc...)
Try adding a damage effect that deals 0 damage, then using event Unit takes damage (from 0 damage effect). Then u can use conditions Triggering unit and Damaging unit
What specifically are you trying to do. Some alternative solutions (e.g. Unit is damaged event) would add more lag, so a data solution may be preferable if possible.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello,
In my map I have weapon with effect, that applies behavior (0.1s duration, fatal damage response that is doing some things - for instance morph damaged unit, restore its health and apply behavior) on damaged unit. Now I need to detect in trigger, who applied behavior to this unit when damage response buff activated.
Event - effect used is useless. Now I have it done via periodic event and checking for behavior, that applies damage response, but I need to know who exacly damaged that buff. Trigger with fatal damage doesn't work (maybe, because wounded unit is still alive).
@ShadowDancer93: Go
If your effect applies the behavior, you could make a trigger with the event any unit uses ability (whatever its called). Then make if statements saying if owner of triggering unit is say, player 1, then do whatever you wanted to do to the unit to put the behavior on the unit.
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
The problem is that here is no ability - just effect inserted intro wepons "set".
@ShadowDancer93: Go
I'm not sure because I'm not looking at the editor right now, but there might be a unit has behavior, or something similar, as an event. Then that would work too.
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here
You said Effect used is useless. How so?
It detects effect correctly, but no information about unit that used effect and target unit.
Ok. Well you can probably filter it yourself. Under what "Conditions" is your "Set" Effect used? How is it triggered per say. (ie. A button in the command card of a unit, triggers, etc...)
Try the Triggering Effect Unit which lets you access several units involved with the triggering effect, like Caster, Source, Target, Origin...
Try adding a damage effect that deals 0 damage, then using event Unit takes damage (from 0 damage effect). Then u can use conditions Triggering unit and Damaging unit
@ShadowDancer93: Go
What specifically are you trying to do. Some alternative solutions (e.g. Unit is damaged event) would add more lag, so a data solution may be preferable if possible.