Hey I am trying to create a base building AI for my enemy using triggers. Would someone mind looking through this trigger and letting me know what's wrong with it?
I'm getting a trigger took too long to execute error right now :(
I can say that you'd get much better results if you made that chunk its own trigger with an event that fires on a periodic timer every 2 seconds instead of an infinite loop within some other trigger. Also it looks like you're micro managing the AI a little too much, or at least not as much as required. I've had great success for instance by giving the AI instructions using the actions under the AI header for say making a new overlord etc, let it pick the specific larva to use, no need to pick which one yourself. Can't remember the specific instruction off the top of my head but it was basically along the lines of 'tell the AI to build an overlord' and it'll deal with picking which larva at which hatchery to do it. Same goes for any unit, even when it means morphing one unit to another, about the only limitation would be telling it to build a unit that it doesn't have the required structure already available to do so.
Hey I am trying to create a base building AI for my enemy using triggers. Would someone mind looking through this trigger and letting me know what's wrong with it? I'm getting a trigger took too long to execute error right now :(
I can say that you'd get much better results if you made that chunk its own trigger with an event that fires on a periodic timer every 2 seconds instead of an infinite loop within some other trigger. Also it looks like you're micro managing the AI a little too much, or at least not as much as required. I've had great success for instance by giving the AI instructions using the actions under the AI header for say making a new overlord etc, let it pick the specific larva to use, no need to pick which one yourself. Can't remember the specific instruction off the top of my head but it was basically along the lines of 'tell the AI to build an overlord' and it'll deal with picking which larva at which hatchery to do it. Same goes for any unit, even when it means morphing one unit to another, about the only limitation would be telling it to build a unit that it doesn't have the required structure already available to do so.
@BumpInTheNight: Go
Cool thanks. I've changed it to something like this: