Hey guys, I couldn't really find anything about target markers anywhere so I'm really just trying to figure out what they do exactly. Specifically what I'm trying to accomplish is have a search effect that can only find the caster of the search. I've tried to do this by setting the maximum count to 1 and the Include Value to Caster but this doesn't seem to always get me the caster. I think this might be able to be done by the use of Target Markers but I'm not sure what they do or how they are used. Any tips?
Why do you need a search effect anyway? You can just execute the desired effect directly at the caster?
Quote:
The only practical example I can recommend is the mutalisk weapon.
Just don't make the same mistake I did: to try to make this into an ability; markers work differently for abilities and weapons.
The default mutalisk weapon does not work as an ability.
If you want a search to only find the caster, this specifically means the origin unit of the effect or whatever effects lead to the effect i.e whoever used the ability/item or whoever put the behavior on the unit that is producing the effect, this is the person that caster always pertains to in data. If this is so all you have to do is require self in the searches target filters, I usually uncheck nuetral, enemy, ally, and only leave player checked.
Another way of doing this and one you can use for millions of things is to put a behavior on the caster, like if this is for an ability that only one unit has example zealot charge, only zealots ever use it. So you would put a behavior called "Is Zealot" on your unit and make a validator that counts unit behavior Is Zealot greater than equal to 1 and leave the target field set to target. Now any effect you put this on will only execute on a zealot so you can do a filterless search if you wanted and as long as the effect in the search has this validator on it the search will only find the zealot.
Other handy ways of doing this is to use a set effect with your ability to apply a behavior to the caster as well as produce whatever other effects you wanted the ability to do, note that you can target an enemy with the ability and as long as the apply behavior target is set to caster the buff will get put on the caster and the other effects will go to the target, or whoever you set their target to in their respective effects. Now you can use that ability from any unit and a search can later use a validated effect to find that behavior.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey guys, I couldn't really find anything about target markers anywhere so I'm really just trying to figure out what they do exactly. Specifically what I'm trying to accomplish is have a search effect that can only find the caster of the search. I've tried to do this by setting the maximum count to 1 and the Include Value to Caster but this doesn't seem to always get me the caster. I think this might be able to be done by the use of Target Markers but I'm not sure what they do or how they are used. Any tips?
There is a validator called Unit Compare Marker Count, also you can make target sorts use markers for the determination of targets eg TSMarker.
The only practical example I can recommend is the mutalisk weapon.
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
@peranzormal: Go
Why do you need a search effect anyway? You can just execute the desired effect directly at the caster?
Just don't make the same mistake I did: to try to make this into an ability; markers work differently for abilities and weapons.
The default mutalisk weapon does not work as an ability.
Did you adjust the marker links?
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
If you want a search to only find the caster, this specifically means the origin unit of the effect or whatever effects lead to the effect i.e whoever used the ability/item or whoever put the behavior on the unit that is producing the effect, this is the person that caster always pertains to in data. If this is so all you have to do is require self in the searches target filters, I usually uncheck nuetral, enemy, ally, and only leave player checked.
Another way of doing this and one you can use for millions of things is to put a behavior on the caster, like if this is for an ability that only one unit has example zealot charge, only zealots ever use it. So you would put a behavior called "Is Zealot" on your unit and make a validator that counts unit behavior Is Zealot greater than equal to 1 and leave the target field set to target. Now any effect you put this on will only execute on a zealot so you can do a filterless search if you wanted and as long as the effect in the search has this validator on it the search will only find the zealot.
Other handy ways of doing this is to use a set effect with your ability to apply a behavior to the caster as well as produce whatever other effects you wanted the ability to do, note that you can target an enemy with the ability and as long as the apply behavior target is set to caster the buff will get put on the caster and the other effects will go to the target, or whoever you set their target to in their respective effects. Now you can use that ability from any unit and a search can later use a validated effect to find that behavior.