Is this possible using data or some combination of triggers? What I want to do is use effect 1 if the target is a point, and use effect 2 if the target is a unit.
I think what he means is If the unit that is casting is casting a spell that is type Point then do action
and if the target is unit and not just some random point do an other action.
Good to know, ty Soulcarverr for the demo map. Does anyone know of a data only solution to accomplishing this, thinking it will probably be using a set and 2 effects with opposite validators. Just have no clue which validators to use with this.
Yes, that is exactly what I'm aiming to accomplish. To be more specific, it is a basic bolt like spell, which I would like to target a specific unit if the player clicks on them, use a create persistent to target a space 10-15 distance away and fire at it otherwise.
It is possible in data, I did it before. Your initial effect for the ability obviously has to have the Target: Location + field set to Target Unit / Point , so it can actually support both kinds of targets.
Then I suggest using a Switch effect to differentiate the cases. To check, if a target is a unit target, you can use the default Not Dead validator. It checks, if a targeted unit is alive, whch is not the case, if you target a point, obviously.
Ah I see, very clever, I was looking for a way to detect if it was No Game Link or something of that variety, then was failing with 'Issue Order Target' validators. Didn't even occur to me to try the Not Dead validator. Ty Kueken, is nice to know both ways of achieving this.
Is this possible using data or some combination of triggers? What I want to do is use effect 1 if the target is a point, and use effect 2 if the target is a unit.
@Deadzergling: Go
yes.....
making a sample for you.
@SouLCarveRR: Go
I think what he means is If the unit that is casting is casting a spell that is type Point then do action and if the target is unit and not just some random point do an other action.
Is that what you are trying to accomplish?
@Deadzergling: Go
here it is.... its actually using triggers.... so this is a non-data way of doing things
@SouLCarveRR: Go
Good to know, ty Soulcarverr for the demo map. Does anyone know of a data only solution to accomplishing this, thinking it will probably be using a set and 2 effects with opposite validators. Just have no clue which validators to use with this.
@DarlD: Go
Yes, that is exactly what I'm aiming to accomplish. To be more specific, it is a basic bolt like spell, which I would like to target a specific unit if the player clicks on them, use a create persistent to target a space 10-15 distance away and fire at it otherwise.
It is possible in data, I did it before. Your initial effect for the ability obviously has to have the Target: Location + field set to Target Unit / Point , so it can actually support both kinds of targets.
Then I suggest using a Switch effect to differentiate the cases. To check, if a target is a unit target, you can use the default Not Dead validator. It checks, if a targeted unit is alive, whch is not the case, if you target a point, obviously.
@Kueken531: Go
Ah I see, very clever, I was looking for a way to detect if it was No Game Link or something of that variety, then was failing with 'Issue Order Target' validators. Didn't even occur to me to try the Not Dead validator. Ty Kueken, is nice to know both ways of achieving this.