Hi, I'm messing around with the charge ability, to make it manual use. I've already achieved it using data, but now it shows some problems because of the ability is based on. Now I have a charge that is possible to be used targeting both locations or units.
The problem I have is that the ability is linked to an attack command, so it gets interrupted by any move command/smartclick on the map. Removing channeling form behaviour flags and some validators, so I can almost ignore that. However, the big problem its that is unusable for fleeing, because if you activate it manually as long as the zealot is attacking or there is a unit in range, the zealot simply attacks the unit because charge is based on an attack command. If I could make it use an Smart key command, it would be nice as it would be Move (autotransitioning into attack) when clicked over a point, and Attack when clicked over a unit.
The normal route that the Augment Ability uses is Activate Charge (manual) > Select target (Attack ability) = Charge (Attack). I've tried to modify it creating sets of effects and issuing orders, but It doesn't work, so I would like to make a workaround with triggers, but I don't know how to do it.
What I thought about is something like this:
When Charge ability is selected, replace the attack command with Smart key command.
That smart key command should be redirected to the Left click. So it's the function of smartkey activated via targeting.
or
Removing attack ability and replacing it with a Move order if targeted over a point. You can always press A and click if you are using charge as a way to change positions/intercepting.
So basically, is making the ability use the Smart key functionality over the attack command.
If you know how to make a work around for this with either triggers, data or a hybrid let me know. For what I've read, anything related with Smart key function and replacing one function for another is related with triggers.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi, I'm messing around with the charge ability, to make it manual use. I've already achieved it using data, but now it shows some problems because of the ability is based on. Now I have a charge that is possible to be used targeting both locations or units.
The problem I have is that the ability is linked to an attack command, so it gets interrupted by any move command/smartclick on the map. Removing channeling form behaviour flags and some validators, so I can almost ignore that. However, the big problem its that is unusable for fleeing, because if you activate it manually as long as the zealot is attacking or there is a unit in range, the zealot simply attacks the unit because charge is based on an attack command. If I could make it use an Smart key command, it would be nice as it would be Move (autotransitioning into attack) when clicked over a point, and Attack when clicked over a unit.
The normal route that the Augment Ability uses is Activate Charge (manual) > Select target (Attack ability) = Charge (Attack). I've tried to modify it creating sets of effects and issuing orders, but It doesn't work, so I would like to make a workaround with triggers, but I don't know how to do it.
What I thought about is something like this:
or
So basically, is making the ability use the Smart key functionality over the attack command.
If you know how to make a work around for this with either triggers, data or a hybrid let me know. For what I've read, anything related with Smart key function and replacing one function for another is related with triggers.