I wanted to make an augment ability autocast on each hit (Applies a behavior). Problem is that I set the ability command to "Attack" and now when I issue an attack command, the ability procs without the unit even attacking. The Augment autocasts as soon as the unit is issued an attack command, which I can understand, but I was wondering if there was a way to make it only work when the unit actually attacks.
Possible but not as an augment. (Augments are basically "hooks" which are triggered when an order to use a different ability is given, as such they're always linked to the order being given and not the ability being executed.)
Make a "Behavior" ability, enable toggling. Have it apply a behavior that, in the Damage Response field, has Location set to attacker and Handled set to an effect that applies whatever behavior you want to apply on attack. You can also use validators and modify unit effects to add a per-hit energy cost and turn off the behavior when the unit is out of energy, or whatever you want to do.
Augments are basically "hooks" which are triggered when an order to use a different ability is given, as such they're always linked to the order being given and not the ability being executed.
Would like to suggest this is incorrect. Augment abilities will continue to cast while the hooked order is active, for instance:
Zealot charge is a Augment on Attack, with validators setting a maximum and minimum range. If you remove the minimum range validator (and it is left on auto-cast) charge will activate over and over while the Zealot is left attacking a single target, with no orders given.
However it is still not useful for an on-attack effect, as an Augment to Attack will not cast when the unit strikes but rather while the unit is attacking (hence why zealots will charge from a distance before they strike).
I wanted to make an augment ability autocast on each hit (Applies a behavior). Problem is that I set the ability command to "Attack" and now when I issue an attack command, the ability procs without the unit even attacking. The Augment autocasts as soon as the unit is issued an attack command, which I can understand, but I was wondering if there was a way to make it only work when the unit actually attacks.
Moved to map development/ data
Possible but not as an augment. (Augments are basically "hooks" which are triggered when an order to use a different ability is given, as such they're always linked to the order being given and not the ability being executed.)
Make a "Behavior" ability, enable toggling. Have it apply a behavior that, in the Damage Response field, has Location set to attacker and Handled set to an effect that applies whatever behavior you want to apply on attack. You can also use validators and modify unit effects to add a per-hit energy cost and turn off the behavior when the unit is out of energy, or whatever you want to do.
Would like to suggest this is incorrect. Augment abilities will continue to cast while the hooked order is active, for instance: Zealot charge is a Augment on Attack, with validators setting a maximum and minimum range. If you remove the minimum range validator (and it is left on auto-cast) charge will activate over and over while the Zealot is left attacking a single target, with no orders given.
However it is still not useful for an on-attack effect, as an Augment to Attack will not cast when the unit strikes but rather while the unit is attacking (hence why zealots will charge from a distance before they strike).
I've been gone for a while but thank you both for clearing that up.