I'm interested in an explaination of the formula or procedure that decides whether an AI is going to attack you. I notice that having a strong military makes the AI less likely to attack you.
I was wondering whether there was a way to ensure that the AI will not initiate war with you, much like there is a formula in Civ 3 (or 4) to ensure your city will not flip. If this is not possible, what quantitative effect does having a strong military or other things such reputation, aggressiveness of AI, civics, religion, population, land mass, alliances etc have on the probability of an AI attacking you.
An english explaination would be great, or even a commented version of the particular code which determines this in the source would also be fine also.
I was wondering whether there was a way to ensure that the AI will not initiate war with you, much like there is a formula in Civ 3 (or 4) to ensure your city will not flip. If this is not possible, what quantitative effect does having a strong military or other things such reputation, aggressiveness of AI, civics, religion, population, land mass, alliances etc have on the probability of an AI attacking you.
An english explaination would be great, or even a commented version of the particular code which determines this in the source would also be fine also.