• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

WKIII

Bookseller
43 Badges
Jul 29, 2011
615
99
  • Europa Universalis IV: Third Rome
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Rights of Man
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Mandate of Heaven
  • Crusader Kings II: Charlemagne
  • Europa Universalis IV: Cradle of Civilization
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Europa Universalis 4: Emperor
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Art of War
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Semper Fi
  • Victoria: Revolutions
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Pre-order
  • 500k Club
  • Victoria 2
  • Europa Universalis IV
Does anybody knows how to add a Truce (avoid wars) between two characters by an event?

I cannot find any such commands in the wiki.

But I badly need this, Otherwise AIs declare wars in peaceful periods between two major wars and ruining the historical scene!
 
The problem with ai_X factors is that it isn't targeted, so it will be more like global peace and not a targeted peace between 2 people.

What you COULD do is add a trait to each person and put the trait into the CB requirements. So the CB could not be used as long as they have the traits. Then just add a timer to remove the traits after X amount of time.
 
Didn't notice "between two characters" part.

In that case you could make custom CB with long enough truce to cover character's lifespan and no prestige or wealth gains when white-peacing, declare war using this CB or and white-peace the war. Although it won't look too pretty - there will be some pop-ups and possibly stopped feast tournament.

EDIT: I tested it and it works, but only for one character, if you try to give truce the same way to other character the first char's truce will be lost.
 
Last edited:
The problem with ai_X factors is that it isn't targeted, so it will be more like global peace and not a targeted peace between 2 people.

What you COULD do is add a trait to each person and put the trait into the CB requirements. So the CB could not be used as long as they have the traits. Then just add a timer to remove the traits after X amount of time.
It will require editing each CB in the game, I want to avoid modding too much the vanilla files.
This way my mod will be more compatible and cause less trouble when new versions or DLCs will arrive.

Didn't notice "between two characters" part.

In that case you could make custom CB with long enough truce to cover character's lifespan and no prestige or wealth gains when white-peacing, declare war using this CB or and white-peace the war. Although it won't look too pretty - there will be some pop-ups and possibly stopped feast tournament.

EDIT: I tested it and it works, but only for one character, if you try to give truce the same way to other character the first char's truce will be lost.
My costume CBs are already set and well timed, But the problem is with the vanilla CBs, I don't wanna touch them, for the same reason I mentioned above.
Look I will more or less try to explain the situation I got:
There are two major wars:
  1. The Norse Invasion of England - Leaders: Jorvik vs. Mercia (Includes Wessex and other Anglo-Saxons defending)
  2. The Saxon Reconquest of England - Leaders: Wessex vs. Jorvik (And many other Norse guys defending)
Well as you see, Wessex participated in the first war (A really intensive war) but the war was targeted at Mercia (because of strategic, tactical and historical reasons) So Wessex won't get truce with Jorvik, what will later allow for both of them declare wars on each other in the peace period (Three years, when Athelred dies and Alfred the Great gains the Wessexian throne, only then he declares his counter attack against Jorvik).

It's a bit complicated yeah, but I really have to get Wessex and Jorvik calm down for just THREE years between these two critical wars. Just until Alfred reigns on Wessex. This war will mete out the fate of England, and any interruption will ruin the entire scene.
So far, They declare sometimes lesser Holy Wars on each other to conquer some counties or a duchy, this really kills the timed war by Athelred's death and Alfred's reign.
 
There's no way to do what you want without editing each vanilla CB, I'm afraid. Even then, you might end up with Athelred during the first war, and Alfred stuck with the truce. CK2 wasn't designed for this level of scripted events.
 
There's no way to do what you want without editing each vanilla CB, I'm afraid. Even then, you might end up with Athelred during the first war, and Alfred stuck with the truce. CK2 wasn't designed for this level of scripted events.
Okay..
I have another solution then, I will make the first war even longer to stretch it at least to 871 because Ethelred is scripted to die anyways as soon as 871 BUT not at wartime. Which means, At the first moment the Invasion ends, he will die, and Alfred will reign and immediately declare the counter attack.
But I just wanted some period of three two years of peace to allow the player and the AI reorganising themselves..

Edit:
Another solution - To make a separate parallel war between Wessex and Jorvik during the Invasion of Britain.. Seems t be a better way to avoid wars, since this will yield a real Truce treaty.
 
Last edited: