I'm making an ability/weapon where a unit creates a persistent effect between itself and the enemy unit constantly, and I can't find a way to later create different effects from the first unit that can only target that specific enemy unit, basically only my unit and the targeted enemy unit can run these new effects and nothing else, any help?
i am not sure if i get you right but i give it a try.
what i have understood:
you want to connect a caster with the target so the caster is only able to cast on the target with other abilities?!
if it is singleplayer, use a behaviour as validator, if the target has it, allow casting.
if it is multiplayer, well then you have to use triggers to cancel any ability not casted on a unit having a custom value set to something that identifies the caster (unit id, index if you track all units in an array)
Kind of though it's more like an aura really, so I can't block an ability cast like that, it needs to be a Validator you can put on an effect, something with Markers or something like that though I couldn't get it to work.
Also can't use a behaviour unless the behavior can be personalized somehow to only link two specific units? Don't think you can do that.
working with markers sucks, i just did that and took me days to make it work. here is what my brain was doing the last hours:
you could create a persistant effect on the target unit with a special marker, let's say Abil/Aura.
now your ability needs at least a SET effect with the same marker and a validator that the target doesn't have the marker (check the link and the caster flag of the match block of markers). in my case this didn't work yet, i needed to add another persistant after the set effect, with same validator and mark to make it work, neither works without set nor without persistant for me, maybe you have more luck)
I'm making an ability/weapon where a unit creates a persistent effect between itself and the enemy unit constantly, and I can't find a way to later create different effects from the first unit that can only target that specific enemy unit, basically only my unit and the targeted enemy unit can run these new effects and nothing else, any help?
@zorbotron: Go
i am not sure if i get you right but i give it a try.
what i have understood:
you want to connect a caster with the target so the caster is only able to cast on the target with other abilities?!
if it is singleplayer, use a behaviour as validator, if the target has it, allow casting.
if it is multiplayer, well then you have to use triggers to cancel any ability not casted on a unit having a custom value set to something that identifies the caster (unit id, index if you track all units in an array)
Kind of though it's more like an aura really, so I can't block an ability cast like that, it needs to be a Validator you can put on an effect, something with Markers or something like that though I couldn't get it to work. Also can't use a behaviour unless the behavior can be personalized somehow to only link two specific units? Don't think you can do that.
@zorbotron: Go
working with markers sucks, i just did that and took me days to make it work. here is what my brain was doing the last hours:
you could create a persistant effect on the target unit with a special marker, let's say Abil/Aura.
now your ability needs at least a SET effect with the same marker and a validator that the target doesn't have the marker (check the link and the caster flag of the match block of markers). in my case this didn't work yet, i needed to add another persistant after the set effect, with same validator and mark to make it work, neither works without set nor without persistant for me, maybe you have more luck)