I have one ability (called activation), that searches for units, and im trying to make that ability give found units a marker. Im trying to make a validator that uses that specific marker, checks if they are from the same player/unit.
The idea is to make a general activation ability that can activate all sorts of other behaviours and abilities, without making a costum tailored sollution to each (i thought markers and link would work, but so far no success)
It is diffrent abilities, does that in any way affect markers?
Is there a way? Or do you need to costum make it through triggers? There wasnt alot of information about markers.
You could try using Behaviors that are hidden from default UI so that people cant see them. Then you could use a validator that compares unit behavior count. Note, this wont work if u want different markers for each individual unit that uses the ability. You could use different behaviors for different abilities though.
The problem is that i cant 'check' if its the same player that applied the behaviour that "activates" the behaviour.
The only work around i see is to have one A and B behaviour (hidden) for each specific ability, add behaviour A to caster, and behaviour B to target, and when activating (check if A is on caster, and B is on target) add a behaviour C (for the validator).
But right now, im wondering if anybody knows how to use the marker links between abilities, in the sc2 mapster wiki, (atleast on ability instant and target), it notes that you can use marker links between abilities, and im wondering how, cause that would solve all the problems!
I know there is, im just not entirely sure how to do it. Try looking at how the adept phase ability works? it might have something similar to what you are looking for. DrSuperEvil will probably come in here in a few hours and teach us all anyway
I have one ability (called activation), that searches for units, and im trying to make that ability give found units a marker.
Im trying to make a validator that uses that specific marker, checks if they are from the same player/unit.
The idea is to make a general activation ability that can activate all sorts of other behaviours and abilities, without making a costum tailored sollution to each (i thought markers and link would work, but so far no success)
It is diffrent abilities, does that in any way affect markers?
Is there a way? Or do you need to costum make it through triggers?
There wasnt alot of information about markers.
You could try using Behaviors that are hidden from default UI so that people cant see them. Then you could use a validator that compares unit behavior count. Note, this wont work if u want different markers for each individual unit that uses the ability. You could use different behaviors for different abilities though.
It is a work around...
The problem is that i cant 'check' if its the same player that applied the behaviour that "activates" the behaviour.
The only work around i see is to have one A and B behaviour (hidden) for each specific ability, add behaviour A to caster, and behaviour B to target, and when activating (check if A is on caster, and B is on target) add a behaviour C (for the validator).
But right now, im wondering if anybody knows how to use the marker links between abilities, in the sc2 mapster wiki, (atleast on ability instant and target), it notes that you can use marker links between abilities, and im wondering how, cause that would solve all the problems!
I know there is, im just not entirely sure how to do it. Try looking at how the adept phase ability works? it might have something similar to what you are looking for. DrSuperEvil will probably come in here in a few hours and teach us all anyway
Look how the Liberator does it using the (None): Require Caster Unit - Value field for caster history of the Unit Compare Behavior Count validator.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Thank you DrSuperEvil.
The saviour once again.