• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] JASS, I need help for simple AI.

Status
Not open for further replies.
Level 9
Joined
Feb 11, 2016
Messages
250
Greetings. I am learning JASS so I need a bit of help.
I am asking public to make Me a simple AI in JASS.
That way I will be able to much easier understand things and finish My map.

AI:
1. B and A in 180 r. while B is running "2" |then| Order B to attack A for 2s *.
2. B and C in 140 r. |then| Order B to attack C.
3. B and A in 340 r. |then| Order B to follow A.

*(After 2s B stop following this rule. This rule can be run again right after it ends, can be run multiple times, just like other two below. Withing that 2s chasing and other times in game, such as stun, are included, but I don't really matter about it, so it's flexible).

Rules are listed by priorities;
A, B and C are unit types;
"r." stays for "range" or "radius";
"s" stays for "second/s".
A and B are allies, C is Neutral Hostile dummy.

In advice thank You.
 
Status
Not open for further replies.
Top