I was wondering, Has somebody created such ability wherein you cast once' Then once the target unit is faraway using Behavior Duration expires, It searches for the Marker then hits the target through the Buff Caster source..? :)
use 2 buffs. 1 needs to run out short before the 2nd. the 2nd has a damage response effect dealing damage to the source(? might be origin, source, target, i always mix it up). ofc you have to validate the damage response effect somehow (check if the first buff is still active, it should then only trigger in the short time frame between buff 2 and 1 )if this won't work i would use triggers with an registered UI - effect event used to validate the source of the damage response. this might not be perfect, just pushing you to the hopefully right direction.
maybe you are lucky and everything is much easier, just needing 1 buff that deals dmg when it runs out (with the right target set, source, origin or caster maybe), but the damage response of a buff should keep track of the origin of the buff ( i guess).
or just create an persistant effect on the target unit, when running out it deals dmg to the caster, much easier
I did it, first create a Behavior Effect Apply(2) through a Set. put it to the ability, the first Buff is for your Enemy, the second Buff is for the Tracker.
Now the Second Buff is just a Tracker Buff that triggers the Search Effect with Validator equals to 1 detects the First Buff(Dummy Buff) when the Second buff triggers it through Behavior Duration Expires..
yeah but if there are 2 players using this there will be 2 units with the buff ans therefore might catch the wrong unit
He is correct. In order to fix that have the Behaviour applied on the target apply another Behaviour on the tracker. That way when the Behaviour on the tracker expires, it can affect the target unit immediately using the Source Unit location.
I was wondering, Has somebody created such ability wherein you cast once' Then once the target unit is faraway using Behavior Duration expires, It searches for the Marker then hits the target through the Buff Caster source..? :)
use 2 buffs. 1 needs to run out short before the 2nd. the 2nd has a damage response effect dealing damage to the source(? might be origin, source, target, i always mix it up). ofc you have to validate the damage response effect somehow (check if the first buff is still active, it should then only trigger in the short time frame between buff 2 and 1 )if this won't work i would use triggers with an registered UI - effect event used to validate the source of the damage response. this might not be perfect, just pushing you to the hopefully right direction.
maybe you are lucky and everything is much easier, just needing 1 buff that deals dmg when it runs out (with the right target set, source, origin or caster maybe), but the damage response of a buff should keep track of the origin of the buff ( i guess).
or just create an persistant effect on the target unit, when running out it deals dmg to the caster, much easier
@FunkyUserName: Go
I mean hits the target from the Target Source xD
@FunkyUserName: Go
I did it, first create a Behavior Effect Apply(2) through a Set. put it to the ability, the first Buff is for your Enemy, the second Buff is for the Tracker.
Now the Second Buff is just a Tracker Buff that triggers the Search Effect with Validator equals to 1 detects the First Buff(Dummy Buff) when the Second buff triggers it through Behavior Duration Expires..
@Reul123: Go
but this doesn't work for more than one players
@FunkyUserName: Go
It specifically is a data related solution nothing to worry about that :)
@Reul123: Go
yeah but if there are 2 players using this there will be 2 units with the buff ans therefore might catch the wrong unit
He is correct. In order to fix that have the Behaviour applied on the target apply another Behaviour on the tracker. That way when the Behaviour on the tracker expires, it can affect the target unit immediately using the Source Unit location.
@FunkyUserName: Go
Your right XD got a better idea? XD