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?
AI Script stops
-
- Posts: 14
- Joined: Tue Dec 20, 2016 7:00 am
-
- Posts: 14
- Joined: Tue Dec 20, 2016 7:00 am
Re: AI Script stops
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
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
-
- Posts: 14
- Joined: Tue Dec 20, 2016 7:00 am
Re: AI Script stops
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)
AiSet("unit-space-pig-farm", 0)
Then give it time to execute, and then do AiSet("unit-space-pig-farm", 2)