How can i search an area for units for minimum of 5 units excluding units with fungal growth on them?
I'm trying to make a behavior that make infestor cast fungal growth on a group of minimum of 5 units but they cant already have fugal going on them, kinda like a autocast. How can i make this possible?
I got it so far that it cast it on a group of units but as i wrote above it also cast on units already having it and i don't want that :/
Do you want the fungal growth to always exclude targets, which already have fungal growth on them? Then add a Unit Behavior Count validator to the apply behavior effect executed by the search.
Or do you want the search to just prefer non-fungal'ed targets, but also refresh the buff on fungal'ed targets, if no other targets are in the area? Then use a Behavior Count target sort, checking for the fungal behavior in the Target Sorts field of your search effect.
In the search area effect there is a field "Effekt: Validators +" just above the "Search: Areas +" Is this the field i should enter that validator into? Thats the only field i can think of that can make it possible.
But that only validate a unit in the group that dont have fg, it does not validate all targets, meaning that it might cast FG on just 1 target that dont have it while the rest have it already.
Did you try it? The search is smart enough to execute the effect only on valid targets for the effect, it checks the validator, before actually executing the effect.
How can i search an area for units for minimum of 5 units excluding units with fungal growth on them?
I'm trying to make a behavior that make infestor cast fungal growth on a group of minimum of 5 units but they cant already have fugal going on them, kinda like a autocast. How can i make this possible?
I got it so far that it cast it on a group of units but as i wrote above it also cast on units already having it and i don't want that :/
2 possibilities:
@Kueken531: Go
In the search area effect there is a field "Effekt: Validators +" just above the "Search: Areas +" Is this the field i should enter that validator into? Thats the only field i can think of that can make it possible.
No, you add the validator to the first effect executed by the search.
@Kueken531: Go
But that only validate a unit in the group that dont have fg, it does not validate all targets, meaning that it might cast FG on just 1 target that dont have it while the rest have it already.
Did you try it? The search is smart enough to execute the effect only on valid targets for the effect, it checks the validator, before actually executing the effect.
@Kueken531: Go
Oh ok, thanks