• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

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

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