I would make a "combine" validator that combines 2 checks:
-check unit type of caster
-check unit type of target
If they match, it would apply the effects. I haven't done much with the validators yet but I'm pretty sure it's a start. Maybe it will need a "condition" validator in the process as well, to check that the caster and target actually match.
The problem is - as far as I know - that the "Check unit type" validator needs a specific unit type. For example I can check if the unit is a SCV or a Zergling...
It is doable. Validator "unit type" has field called "other unit". Just select Other Unit - Value as Caster (Unit - Value being target), and validator will compare those instead of Validator - Value (you can leave that one empty then).
Hey guys, how to make a validator that checks if the unit type of the source/caster equals the unit type of the target?
Greetings
I would make a "combine" validator that combines 2 checks:
-check unit type of caster
-check unit type of target
If they match, it would apply the effects. I haven't done much with the validators yet but I'm pretty sure it's a start. Maybe it will need a "condition" validator in the process as well, to check that the caster and target actually match.
The problem is - as far as I know - that the "Check unit type" validator needs a specific unit type. For example I can check if the unit is a SCV or a Zergling...
Shameless Bump. Someone has to know how this works.
It is doable. Validator "unit type" has field called "other unit". Just select Other Unit - Value as Caster (Unit - Value being target), and validator will compare those instead of Validator - Value (you can leave that one empty then).
Awsome! I will test that asap! :-)
Edit: It worked! Thanks!