• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

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

Status
Not open for further replies.
Level 8
Joined
Feb 11, 2016
Messages
238
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