I agree with you both, TheMeInTeam and r_rolo. The first focus should be in getting the AI to use the civic a bit more often. I got a bit enthusiastic in the discussion with PieceOfMind. Not that that discussion was useless, but let's first focus on getting the AI into nationhood and then try to improve its drafting efficiency in general and only then try to get it to place the Globe Theatre better.
Please read and criticise.
When should the AI use Nationhood?
Situation 1a: Defensive drafting: The AI led civilisation is in trouble because it is at war with a stronger coalition of civilisations on the same land mass.
The AI has access to the power rating of civilisations so it should be able to analyse the difference in power. I think it's a good idea to teach it to draft when at war with a stronger civilisation. But this could lead to bad decisions if the enemy was oversees and the war wasn't very active. I don't think it's wise for the AI to reduce its economy for drafting purposes when there is for instance no efficient way to reach eachother (pre galleons oversees war). So the below odds to switch just apply to a war with an enemy on the same land mass.
Chance to switch to nationhood each turn = max (power_enemies - 1.1 * power_friends , 0)
Reasoning: The AI doesn't have to switch to nationhood when at war, but if the enemy is significantly stronger (more than 10% stronger in this formula), then it should definitely consider it. The odds of switching each turn are relative to the power difference. So if the power difference is significant, then it will typically result in a switch to nationhood within a few turns.
Situation 1b: Defensive drafting: The AI is getting into trouble and needs more soldiers to survive.
The AI has access to the power rating of civilisations so it should be able to analyse the difference in power between the moment it started a war and its power at this instant. This is just an analysis of its own power changes, not the whole coalition.
So how about this:
As long as 1.5 * enemies power > ally power
Chance to switch to nationhood each turn = max (power_now - power_startofwar * 0.95 , 0)
Reasoning: the AI has a chance to switch to nationhood when it has lost at least 5% of its power. The chance is proportional to the loss of strength. So if it has lost a significant part of its power, then it will typically switch to nationhood within a few turns. But if the allied armies are 50% stronger than the enemy armies, then there is nothing to worry about.
(this for instance means that if you destroy an enemy stack of doom, reducing the enemies strength to below 1.5 times your own, then it will typically move quickly to nationhood)
Situation 1c: Defensive drafting: The AI led civilisation is losing cities
The AI is losing more cities than it gains measured since the start of the war.
Chance to switch to nationhood each turn = 0.33 * max (#cities lost - #cities gained, 0)
Reasoning: The AI won't necessarily switch to nationhood when it loses a single city, that could be a fluke. But if this situation endures or it loses more cities, then it will definitely move to nationhood.
Note that some of the defensive drafting measures could lead to offensive behaviour. They could switch the tide of the war. But their first idea is defensive.
Situation 2: Offensive drafting: The AI has a total war plan and is planning to attack a strong enemy.
An enemy is considered strong when it is stronger or almost as strong as the AI's civilisation. The enemy needs to have at least a power rating of 0.8 of the friendly power rating.
Chance to switch to nationhood each turn during war preparation = max ( 0.8 * power_alliedarmies - power_enemyarmies , 0)
Reasoning: When preparing a war against a strong enemy, then the AI will consider moving to nationhood to tip the scales in its favour. This is especially likely when the enemy is stronger.
The AI shouldn't move out of nationhood until the war ends. We want to avoid multiple switches of civics during a war.
So please tell me what you think about these ideas. Which ideas need some adjustments and which are fine as they are. And if you think they're all rubbish, then please tell me gently.