So... do you want it to function exactly like the built in Attack command?
Attack does Not acquire allies, unless they're directly targeted via a deliberate mouse-click. Are you trying to remap Attack to the R key?... that wouldn't be very hard, all you'd have to do is go into the Ability tab and change the Attack ability's Hotkey to R.
If that's not what you're trying to do, then please be very specific. There's a sub-Reddit on Reddit.com called "Explain It Like I'm 5 [years old]"
Explain what you're trying to do like I'm 5 years old.
Well, it seemed easy enough to change the smart filters in the attack ability, but this doesn't work. Even if you change the smart priority to higher than the move ability it still didn't work. But there was another way: Make an ability that issues an attack order.
1: Create an effect of type Issue Order (Call it Attack Ally or something) and set
Ability : Attack.
Player+ : Target
Unit+ : Caster
Target+ : Target Unit
2. Create an ability of type Effect - Target and set
Smart Priority : 100
Target Filters+ : Enable Allies and Enemies
Effect+ : Attack Ally
Flags+ : Check Smart Command (so it uses it when right-clicking)
3. Give the units the ability
Or you can be lazy and use a trigger that orders the unit to attack anything that is being right-clicked, lol
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have been messing with the attack/move ability a bit, and so far i was able to:
- make allies attack each other automatically (scan filters)
- make allies unable to follow each other but instead click was ordering to move nearby
What i want to achieve however is this:
- allies dont attack each others with auto-attack, but can accidently atack each other by r.clicking on each other.
So... do you want it to function exactly like the built in Attack command?
Attack does Not acquire allies, unless they're directly targeted via a deliberate mouse-click. Are you trying to remap Attack to the R key?... that wouldn't be very hard, all you'd have to do is go into the Ability tab and change the Attack ability's Hotkey to R.
If that's not what you're trying to do, then please be very specific. There's a sub-Reddit on Reddit.com called "Explain It Like I'm 5 [years old]"
Explain what you're trying to do like I'm 5 years old.
you could reorder the attack through triggers probably.
@Azzaaer: Go
Well, it seemed easy enough to change the smart filters in the attack ability, but this doesn't work. Even if you change the smart priority to higher than the move ability it still didn't work. But there was another way: Make an ability that issues an attack order.
1: Create an effect of type Issue Order (Call it Attack Ally or something) and set
Ability : Attack.
Player+ : Target
Unit+ : Caster
Target+ : Target Unit
2. Create an ability of type Effect - Target and set
Smart Priority : 100
Target Filters+ : Enable Allies and Enemies
Effect+ : Attack Ally
Flags+ : Check Smart Command (so it uses it when right-clicking)
3. Give the units the ability
Or you can be lazy and use a trigger that orders the unit to attack anything that is being right-clicked, lol