Static scripting help
4 posts
• Page 1 of 1
Hey. I am trying to make AI work for my Desert Conquest map (with an aim to make The Conquest work later too, but Desert one is easier since it does not require changing the script, so I'm working on that one first). I set up some defence lines, as you can see on the screenshot here: http://screenshooter.net/1487897/jbhqmnm After those lines are filled, I want AIs to attack each others buildings, so I set an attack for them both: http://screenshooter.net/1487897/slbdlpt However, AI doesn't recruit troops anymore after it filled out the positions; not even when it could produce like 70 militia at once. Needless to say, they never attack. Where's the mistake that I am making?
Re: Static scripting help
If I understand correctly, then your problem is you don't have enough defence lines, if those lines I can see on screenshot are the only ones AI have, then it will not make army, because it doesn't know where the troops have to go. You just have to give AI more defence lines (that much it needs for troops, that will attack) which will be set to "Attackers". So each AI need to have at least 7 defence positions.
I fixed The Shattered Kingdom and The Peasants Rebellion here!
Posts: 3822
Joined: 16 Sep 2007, 22:00
KaM Skill Level: Skilled
ICQ: 269127056
Website: http://lewin.hodgman.id.au
Yahoo Messenger: lewinlewinhodgman
Location: Australia
Re: Static scripting help
The AI will only make troops to fill defence positions. That's the whole idea of defence lines, it controls how many troops the AI makes and where they put them. Otherwise AIs in the campaigns would end up with 1000s of troops standing outside the barracks with nothing to do
So as Vatrix said, add some extra defence positions set to "attackers" (previously known as "backline"). This means those troops are allowed to be used in AI attacks.
So as Vatrix said, add some extra defence positions set to "attackers" (previously known as "backline"). This means those troops are allowed to be used in AI attacks.
Re: Static scripting help
Thanks, with your help I managed to do it
4 posts
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests