Page 1 of 1

Static scripting help

PostPosted: 05 Aug 2014, 08:21
by sado1
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

PostPosted: 05 Aug 2014, 08:31
by Vatrix
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.

Re: Static scripting help

PostPosted: 05 Aug 2014, 11:24
by Lewin
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 :P

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

PostPosted: 05 Aug 2014, 12:42
by sado1
Thanks, with your help I managed to do it :P