• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[AI] Attacking priorities

Status
Not open for further replies.
Level 2
Joined
Aug 9, 2004
Messages
11
I'm making a small AoS map for my friends and I.

I want to give units priorities to attack specific units over others.

Eg I have a mortar team, I want it to attack unarmored units first, and then towers if they are nearby.

is there anyways of doing this without being superlaggy ?
 
Level 6
Joined
Jun 16, 2004
Messages
237
Hmmm... I don't know much about attack prioritizing, but I don't think you can do anything with AI scripts about that behavior. My guess is that you need to use triggers and specific unit orders, but that would cause a lot of lag and require extensive coding.

Perhaps AIAndy knows a solution for this problem, if he has implemented something similar in AMAI. I'd wait for his response.
 
Level 2
Joined
Oct 29, 2004
Messages
12
Hey i could try and help, if you are using World Editor, not AMAI. Just use specific Conditions.

If "blank type of unit" is "equal to" "number of units"

use something like that. but just replace it, and use integer comparison.

Its all about your conditions.
the conditions basicly just tell the attack what it must require for it to attack.

note this is only for AI editor, that came with the world editor.
 
Status
Not open for further replies.
Top