AI Script stops

Wargus is a Warcraft 2 mod that allows you to play Warcraft 2 with the Stratagus engine.
Mizukami999
Posts: 14
Joined: Tue Dec 20, 2016 7:00 am

AI Script stops

Postby Mizukami999 » Mon May 15, 2017 7:07 am

Another question from me, sorry

My problem is that while editing AI script I'm encountering some random AI failures ingame. AI just stops doing anything, even if it has everything necessary to continue building. It just doesn't start some item in the list. Maye it happens while choosing building location.
I thought I could determine that AI hanged and fix it by doing AiSet("unit-xxx", 0), and then by returning it back to 1. But this didnn't work.

Maybe somebody knows whi the AI stops, or how to force its restart ingame?
Mizukami999
Posts: 14
Joined: Tue Dec 20, 2016 7:00 am

Re: AI Script stops

Postby Mizukami999 » Wed Jul 26, 2017 1:21 am

Dear Mizukami, try to increase the quantity of units ordered in AiSet.

For example, u order AiSet("unit-space-pig-farm", 1)

If AI fails, ur script checks if the farm is ready in time. If not, u do AiSet("unit-space-pig-farm", 2)

Ai attempts to build the second structure properly
Mizukami999
Posts: 14
Joined: Tue Dec 20, 2016 7:00 am

Re: AI Script stops

Postby Mizukami999 » Wed Jul 26, 2017 8:37 am

One remark: before doing that, do

AiSet("unit-space-pig-farm", 0)

Then give it time to execute, and then do AiSet("unit-space-pig-farm", 2)

Who is online

Users browsing this forum: No registered users and 2 guests