Vicevirtuoso
The Modetta Man
So, I've currently gotten a version of my Metal Gear Solid civilization on the Workshop uploaded as a beta. One of the main reasons it's still a beta is that the AI cannot utilize its unique ability, which is to gain gold and other bonuses by keeping units stationed in the territory of a protected City-State. I've done a fair bit of Lua coding by this point, but I've never worked with AI scripting and don't even know if it's possible without DLL edits.
Basically, I want the AI to send some military units to CS territory and keep them there. The circumstances it would do this are: only when it is playing a specific civilization (my modded civ), if it has a strong military compared to the rest of the world (at least in the top 1/3 in military rank), and is not currently at war with someone stronger than them. It would also need to check whether or not the civ is currently protecting the CS and how close it is to its capital. Is this possible with only Lua?
Basically, I want the AI to send some military units to CS territory and keep them there. The circumstances it would do this are: only when it is playing a specific civilization (my modded civ), if it has a strong military compared to the rest of the world (at least in the top 1/3 in military rank), and is not currently at war with someone stronger than them. It would also need to check whether or not the civ is currently protecting the CS and how close it is to its capital. Is this possible with only Lua?