I have made 3 auto cast abilitys that trigger the normal abilitys.
Take raven for example, it has 3 spells. Lets say all 3 spells cost 50 energy each.
How can i make the raven prioritize the seeker missile over point defence drone and point defence drone over auto turret? So if there is a group of units i wanna cast a seeker missile instead of auto turret.
Can you please specify "prioritise"? A simple way would be to add validators for the Raven's energy level, but that obviously prevents the Raven from ever casting a spell if it can cast a higher priority one, which isn't very smart.
Another way would be to adjust the autocast ranges equal to your priority so the Raven autocasts HSM before it even considers casting the other spells. Obviously that's even worse than the previous setup, and probably fails if the enemies are already within range.
For anything more intelligent you have to first lay out the conditions under which each spell should be cast, then add validators to represent these conditions (I think you could, for example, run a scan for enemy missiles around the Raven, and only autocast PDD if more than x missiles are detected)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have made 3 auto cast abilitys that trigger the normal abilitys.
Take raven for example, it has 3 spells. Lets say all 3 spells cost 50 energy each.
How can i make the raven prioritize the seeker missile over point defence drone and point defence drone over auto turret? So if there is a group of units i wanna cast a seeker missile instead of auto turret.
Can you please specify "prioritise"? A simple way would be to add validators for the Raven's energy level, but that obviously prevents the Raven from ever casting a spell if it can cast a higher priority one, which isn't very smart.
Another way would be to adjust the autocast ranges equal to your priority so the Raven autocasts HSM before it even considers casting the other spells. Obviously that's even worse than the previous setup, and probably fails if the enemies are already within range.
For anything more intelligent you have to first lay out the conditions under which each spell should be cast, then add validators to represent these conditions (I think you could, for example, run a scan for enemy missiles around the Raven, and only autocast PDD if more than x missiles are detected)