|
Post by EditorLover on Jul 30, 2021 19:17:00 GMT
A main problem I face when designating attack locations for the AI, is that I can only make him attack through one set of locations, example:
Let's say the AI army is gathered in the southeastern corner of the map, and I want it to sometimes attack west and sometimes attack north (something it does in the campaign
I don't mean attacking west and THEN north, because that's simple, I just put the 1st location west and the 2nd attack location north, I want say the 1st created army to attack west, and the 2nd or 3rd created army to attack north
And no, by created army I don't mean through the "create entity" command, I mean through the "Army composition" command where the AI spends resources and time to recruit its units, and where the AI might not be able to do it if the buildings are destroyed (whereas the create entity command bypasses all of that, sure I can use a condition linked to the buildings but that doesn't work for when the AI rebuilds its buildings, not to mention super tedious way to do it)
|
|
|
Post by orwasaker on Aug 31, 2021 9:10:34 GMT
Update: I can't delete the post since I made it as a guest, but for anyone reading this in the future and wanting an answer: to make the AI choose from multiple destinations to attack you have to use the "Patrol Location" triggers, there are 3 of them and each one gives the AI a separate destination of attack
So if you use 2 "Patrol Location2" triggers, the AI will go from the 1st one to the 2nd one
But if you use PL1, PL2 and PL3 all at once, the AI will randomly pick one of them each time it attacks, and go to it...and if it reaches that randomly picked one, it won't go to the others, it will simply search for the nearest enemy to attack
|
|