Hello all, this is my first post on hiveworkshop so bear with me.
I'm trying to create AI for a map i'm making with a simple JASS script, and controlling it through commands in the GUI.
Here is the section of the script that controls the attack behavior:
And here is the trigger that tells that part to fire:
I have it set so that it picks a random player, and orders them to attack whenever the timer expires (messages are for debugging purposes).
The player's have been assigned to indices in an array, and the AI has already been initialized at game start. It all works how I intended, until I've destroyed about 4-5 out of 8 of the computer bases, then the remaining computers stop the attacking behavior. The recursive part works, and the messages are displayed, but the computer seems to not be receiving the AI command.
What am I doing wrong here?
(Please be basic, my understanding of JASS and programming is limited)
I'm trying to create AI for a map i'm making with a simple JASS script, and controlling it through commands in the GUI.
Here is the section of the script that controls the attack behavior:
And here is the trigger that tells that part to fire:
I have it set so that it picks a random player, and orders them to attack whenever the timer expires (messages are for debugging purposes).
The player's have been assigned to indices in an array, and the AI has already been initialized at game start. It all works how I intended, until I've destroyed about 4-5 out of 8 of the computer bases, then the remaining computers stop the attacking behavior. The recursive part works, and the messages are displayed, but the computer seems to not be receiving the AI command.
What am I doing wrong here?
(Please be basic, my understanding of JASS and programming is limited)