• 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.

Kretoxian

Anon, we are legion
23 Badges
Oct 12, 2005
2.743
2
  • Iron Cross
  • Shadowrun: Hong Kong
  • Shadowrun: Dragonfall
  • Shadowrun Returns
  • Tyranny: Archon Edition
  • Stellaris
  • Magicka 2
  • Pillars of Eternity
  • Europa Universalis III: Collection
  • 500k Club
  • Semper Fi
  • Majesty 2 Collection
  • Cities in Motion 2
  • Heir to the Throne
  • Hearts of Iron III Collection
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Divine Wind
  • Europa Universalis III
  • Darkest Hour
  • Crusader Kings II: The Old Gods
  • Crusader Kings II
I want to modify AI files to achieve:
1. Prevent a country leaving an alliance
2. Prevent another country to not give up to other country territorial claims (Country A not ceding country B claims) being both countries in the same alliance.
 
I want to modify AI files to achieve:
1. Prevent a country leaving an alliance
2. Prevent another country to not give up to other country territorial claims (Country A not ceding country B claims) being both countries in the same alliance.

a) Increase relations between countries, make countryA protect country B, add friendly/favor

b) there's a claim change modifier, don't remember it off the top of my head, see default.ai or the modding documentation for ai parameters. Read the Manual. RTM.
 
a) Increase relations between countries, make countryA protect country B, add friendly/favor

But isn't there a parameter defining the possibility of a country for leave an alliance?

2) claim = acceptance = -70 should be enough. Check other ai files to see where it is used exactly.

in the UK ai file has claim = acceptance = -20 and, at least with these two other countries, it's not enough...
 
Try with -70, that should be enough. Or use -99 and you'll be sure thay'll never given it to territorial demands.

But maybe I didn't understand the question, can you give me an example?

Regarding the alliance, I'm not sure but I think the neutrality and befriend section of an AI file will influence it. Take a look at an existing file, for example UK_1936 and look at FRA tag.
 
I've noticed the AI is far too eager to leave alliances, in general, to ahistorical levels: mainly with the British Commonwealth breaking apart almost every single game. They start out okay, but as soon as one of the major Axis powers is defeated, Australia, New Zealand, Canada, and so on frequently leave the Allies unless puppeted. Which can create very odd situations.
 
Try with -70, that should be enough. Or use -99 and you'll be sure thay'll never given it to territorial demands.

But maybe I didn't understand the question, can you give me an example?

Regarding the alliance, I'm not sure but I think the neutrality and befriend section of an AI file will influence it. Take a look at an existing file, for example UK_1936 and look at FRA tag.

Nope, you understood it well. I was meaning that in the mod i'm making, in less than a year Vichy France claims the Spanish territories in Africa and Spain always end up ceding those lands to them, despite of being in the same alliance. They also tend to leave the alliance they're in (well, this only VIC, not SPA)
 
Then it's different.
I guess it maybe not VIC demanding them, but SPA freely giving them (you can see it in the history log, demand territory would write something like "Spain caved in to the demands of VIC".
If it's Spain freely giving them, you can lowers the relations between the two states or simply make Spain claim those provinces (Spain won't secede them freely if it's claiming them).
 
^^ Yes, it seems that after having spain claiming those provinces (adding them into "claimed_provinces = { xxx" in the .inc file) they don't cede them to VIC.