oh here we go, check out the effect 'medivac - heal search', its the function that picks which unit a medivac is going to heal and it uses sorts to accomplish that. Mimicing that and changing any reference of health to energy and then aiming for the highest instead of lowest outta let you still do it all in the data editor.
Hrm, again I've never done this but I've worked with a lot of effects and I've noticed a field in search effects called sorts, and I'm guessing if your effect has a limited number of targets you could use that sort to ensure the most favourable of the available targets are picked for the effect's effect. I'd start by looking further into that and see if there are any examples of search effects where that area is filled out.
WIthout posting what your validator looks like we wouldn't be able to help you on that front, but suffice you'd be more looking for some sort of target sort then a validator really to find the best target among the bunch to anti-energy, the validator would only have to first check if the unit is capable of having energy really. Now I've got no experience with target sorting but I'm sure there are a few example in the existing blizzard assets you could draw from.
The angle dependent on attributes you could kinda hack by having several various of this effect that remove & apply themselves as the attributes are adjusted as a broad plan perhaps.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
oh here we go, check out the effect 'medivac - heal search', its the function that picks which unit a medivac is going to heal and it uses sorts to accomplish that. Mimicing that and changing any reference of health to energy and then aiming for the highest instead of lowest outta let you still do it all in the data editor.
Hrm, again I've never done this but I've worked with a lot of effects and I've noticed a field in search effects called sorts, and I'm guessing if your effect has a limited number of targets you could use that sort to ensure the most favourable of the available targets are picked for the effect's effect. I'd start by looking further into that and see if there are any examples of search effects where that area is filled out.
@KrayzBlu: Go
WIthout posting what your validator looks like we wouldn't be able to help you on that front, but suffice you'd be more looking for some sort of target sort then a validator really to find the best target among the bunch to anti-energy, the validator would only have to first check if the unit is capable of having energy really. Now I've got no experience with target sorting but I'm sure there are a few example in the existing blizzard assets you could draw from.
The angle dependent on attributes you could kinda hack by having several various of this effect that remove & apply themselves as the attributes are adjusted as a broad plan perhaps.