- 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.
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.