Possible to mod to cut down on border gore?

Moderator: Pocus

Post Reply
Scobie
Lance Corporal - SdKfz 222
Lance Corporal - SdKfz 222
Posts: 24
Joined: Fri Jul 03, 2020 6:13 pm

Possible to mod to cut down on border gore?

Post by Scobie »

So, started playing this game not long ago, enjoying it a lot so far. I'm probably getting a bit ahead of myself here, but I was wondering if it'd be possible to mod the AI to be less likely to accept deals that would leave them with provinces cut off from their capital, so that kingdoms are less likely to get chopped in half or end up with little bits of themselves in each other's territory. It's daft but this sort of thing really irks me, and I love the game otherwise.
Pocus
Ageod
Ageod
Posts: 7089
Joined: Tue Oct 02, 2012 3:05 pm

Re: Possible to mod to cut down on border gore?

Post by Pocus »

The interest in a region for the AI, in peace or transaction treaty is given using this line of code
interest = DivideAndRound(Region_Worth(candidateID) * Region_CountAdjacentOwner(creatorID, candidateID) * 25, 100);
Diplomacy.bsf, line 12633
That is, 0 interest if not neighbour at all to its territory, and +25% per owned neighbouring region
AGEOD Team - Makers of Kingdoms, Empires, ACW2, WON, EAW, PON, AJE, RUS, ROP, WIA.
Scobie
Lance Corporal - SdKfz 222
Lance Corporal - SdKfz 222
Posts: 24
Joined: Fri Jul 03, 2020 6:13 pm

Re: Possible to mod to cut down on border gore?

Post by Scobie »

That's awesome, thanks a lot!
Post Reply

Return to “MOD”