I was wondering if there was any way to add a requirement or something of the sort to a search area effect.
I need this search area effect to apply a behavior to units it finds. My problem is that I can't have it applying the behavior to the same unit more then once; and there will be multiple things doing this search area effect. Sadly its not as easy as making it so the behavior can't stack(This would break my game mechanics).
An easier way to picture what I'm thinking of, is think of an AoE turret or something, that fires using a Search Area. A unit with a behavior runs past it. This behavior makes it so it can't be targeted by said Search Area. Kind of a sloppy example, but it might be easier to understand.
I've played with the idea of the behavior giving the unit a specific attribute(Heroic, Massive, Hover; things that I won't need), and having the search area not be able to target that attribute, but sadly I can't seem to find a way to apply an attribute via effects or behaviors.
I played with validators a bit, and I couldn't figure out how to get them to work in the search area effect. It has to be in the search area, it can't be on the Apply Behavior or anything.
The closest thing I could get to having the validators work was it made it so that the unit giving out the search wouldn't use the effect unless it had the behavior. Which is kinda the opposite of what I want.
The search area applies a launch missile(Not really needed, but its there to add art and something to not just be boring), so I need to stop it before it shoots a missile to a target that it wont effect, which is why I'm having a problem.
I was wondering if there was any way to add a requirement or something of the sort to a search area effect.
I need this search area effect to apply a behavior to units it finds. My problem is that I can't have it applying the behavior to the same unit more then once; and there will be multiple things doing this search area effect. Sadly its not as easy as making it so the behavior can't stack(This would break my game mechanics).
An easier way to picture what I'm thinking of, is think of an AoE turret or something, that fires using a Search Area. A unit with a behavior runs past it. This behavior makes it so it can't be targeted by said Search Area. Kind of a sloppy example, but it might be easier to understand.
I've played with the idea of the behavior giving the unit a specific attribute(Heroic, Massive, Hover; things that I won't need), and having the search area not be able to target that attribute, but sadly I can't seem to find a way to apply an attribute via effects or behaviors.
Validators.
Can you explain?
I played with validators a bit, and I couldn't figure out how to get them to work in the search area effect. It has to be in the search area, it can't be on the Apply Behavior or anything.
The closest thing I could get to having the validators work was it made it so that the unit giving out the search wouldn't use the effect unless it had the behavior. Which is kinda the opposite of what I want.
Specify the validator in the effect that is triggered by the area search.
The search area applies a launch missile(Not really needed, but its there to add art and something to not just be boring), so I need to stop it before it shoots a missile to a target that it wont effect, which is why I'm having a problem.
That doesn't change anything. The launch missile effect will not run if its validators fail.
So it doesn't. Thanks much.
I just assumed that it would still fire but not apply its effect because of the validator.
Thanks sir. ;D