Jump to content
Age of History 3
Łukasz Jakowski

AI Peace Treaty - Order of Actions

Recommended Posts

Wow, it seems that we could make it so that governments could only do AI_PEACE_ORDER: [5], so they'd only get gold whenever they win lol. Can we also make one but unique to leaders or civilizations, with order of priority (basically whose order we will follow first, maybe gov, civs or leaders) that also depends on the year.

Share this post


Link to post
Share on other sites

On 9/2/2024 at 2:51 PM, Łukasz Jakowski said:
0 == TAKE LAND
1 == DEMAND VASSALIZATION
2 == DEMAND SUBJECT TRANSFER
3 == DEMAND RELIGION CONVERSION
4 == DEMAND GOVERNMENT CHANGE
5 == DEMAND GOLD
6 == LIBERATE CIVS
7 == DEMAND WAR REPARATIONS
8 == DEMAND HUMULIATE

Where is "Demand militry access" option? The video shows this option, but I don't see it here @Łukasz Jakowski

Share this post


Link to post
Share on other sites

On 9/2/2024 at 2:51 PM, Łukasz Jakowski said:

AI Peace Treaty Order of Actions

Each type of government has two special orders of actions for handling a peace treaty.

 

## PEACE TREATY -> AI -> ORDER

0 == TAKE LAND
1 == DEMAND VASSALIZATION
2 == DEMAND SUBJECT TRANSFER
3 == DEMAND RELIGION CONVERSION
4 == DEMAND GOVERNMENT CHANGE
5 == DEMAND GOLD
6 == LIBERATE CIVS
7 == DEMAND WAR REPARATIONS
8 == DEMAND HUMULIATE


## EXAMPLE USE:

AI_PEACE_ORDER: [0, 4, 3, 5, 1, 2],
AI_PEACE_ORDER2: [2, 5, 7, 6, 8, 0, 1, 3],


## 75% chance for 'AI_PEACE_ORDER,' 25% chance for 'AI_PEACE_ORDER2.

AI_PEACE_ORDER_CHANCE: 75,
AI_PEACE_ORDER_CHANCE2: 25,

 

AI_PEACE_ORDER: [0, 4, 3, 5, 1, 2],

The AI's order of actions is as follows:

  1. Take land
  2. Demand government change
  3. Demand religious conversion
  4. etc.

 

Example use in Governments.json

Monarchy:

 

Communism will prioritize creating puppets/vassals in a peace treaty.

 

 

Is it possible to create a second code about take land ? This time, it would concern the rank and the government.

1. Cored Provinces (Retake lost Provinces)

2. Cities Rank  (Provinces without Cities, Villages, Minor Cities, Major Cities, Capital Cities)

3. Terrain types (Province value)

 

For example, lower rank civilizations would less likely take capitals.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Age of History Games