Łukasz Jakowski 13,396 Posted September 2, 2024 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: Take land Demand government change Demand religious conversion etc. Example use in Governments.json Monarchy: Quote { Name: "Monarchy", Extra_Tag: "m", GOV_GROUP_ID: 0, RulerTitle: King, RulerRoman: true, KingsImages: true, Color: [255, 194, 36], REQUIRED_TECHNOLOGY: -1, REVOLUTIONISTS: false, TRIBAL: false, STARTING_ARMY: 1.0, AdvisorCost: -0.1, MonthlyLegacy: 0.4, MaxManpower: 2000, AI_PEACE_ORDER_CHANCE: 85, AI_PEACE_ORDER_CHANCE2: 15, AI_PEACE_ORDER: [0, 1, 2, 3, 5, 7, 8, 4, 6], AI_PEACE_ORDER2: [1, 0, 3, 2, 5, 4, 6, 7, 8], }, Communism will prioritize creating puppets/vassals in a peace treaty. Quote { Name: "Communism", Extra_Tag: "c", GOV_GROUP_ID: 1, RulerTitle: GeneralSecretary, RulerRoman: false, KingsImages: false, Color: [204, 0, 0], REQUIRED_TECHNOLOGY: 63, REVOLUTIONISTS: false, TRIBAL: false, STARTING_ARMY: 1.0, MilitaryBuildingsCost: -0.075, ConstructionTime: -0.15, GeneralAttack: 2, AI_PEACE_ORDER_CHANCE: 85, AI_PEACE_ORDER_CHANCE2: 15, AI_PEACE_ORDER: [1, 4, 2, 0, 5, 3, 7, 8], AI_PEACE_ORDER2: [0, 1, 2, 3, 5, 7, 8, 4, 6], }, kurdebalans, Abhyuday upadhyay, Solu and 13 others 15 1 Quote Share this post Link to post Share on other sites More sharing options...
ARWD 107 Posted September 2, 2024 Does the difficulty option give an advantage to the computer or change the behavior of the AI? Wayne23lololh, Solu and Rodak Polak 3 Quote Share this post Link to post Share on other sites More sharing options...
Joaoj 105 Posted September 2, 2024 Good to see the game is getting new improvements! Quote Share this post Link to post Share on other sites More sharing options...
qxz 622 Posted September 2, 2024 Good to have Quote Share this post Link to post Share on other sites More sharing options...
ISyncradar 43 Posted September 2, 2024 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. Quote Share this post Link to post Share on other sites More sharing options...
OwnM3Z0 1,102 Posted September 3, 2024 i Think you should add waaay more ideology fitted AI peace orders in the future, 2 is too predictable Quote Share this post Link to post Share on other sites More sharing options...
eNeXPii 35 Posted September 5, 2024 (edited) Top, this is so good so I can make different types of end war negotiations. Thank you Lukasz! Edited September 5, 2024 by eNeXPii Unity 1 Quote Share this post Link to post Share on other sites More sharing options...
Rodak Polak 597 Posted September 15, 2024 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 Quote Share this post Link to post Share on other sites More sharing options...
Wayne23lololh 1,645 Posted September 16, 2024 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: Take land Demand government change Demand religious conversion 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. Quote Share this post Link to post Share on other sites More sharing options...