Where to mod to reduce max ruler and leader age?

Moderator: Pocus

Post Reply
Kerenos
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 38
Joined: Tue Feb 16, 2021 1:55 am

Where to mod to reduce max ruler and leader age?

Post by Kerenos »

Hello,

I wish to mod my game to reduce the max age a ruler or leader can attain. I find that having them for over 50 years is too long. For example, I have a ruler in one game whom I've had for 50+ years. He's 75 and still in average health. I could also modify how health deteriorates based on age. Can you please provide keys words and the script file, so that I may locate the code.

Thanks
Kerenos
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 38
Joined: Tue Feb 16, 2021 1:55 am

Re: Where to mod to reduce max ruler and leader age?

Post by Kerenos »

In the faction.bsf script file, on line 12275, you have a variable called $RULER_ENDYEAR. does this determine how long a ruler can live? On line 12379 there is the CHARACTER_HEALTH_MAX_AGE. Can this be modified so that health deteriorates faster as the ruler reaches his sixties and seventies?

Thanks.
Pocus
Ageod
Ageod
Posts: 6987
Joined: Tue Oct 02, 2012 3:05 pm

Re: Where to mod to reduce max ruler and leader age?

Post by Pocus »

Sorry for the late answer, if case of emergency don't hesitate to PM, that will send me an email notification.

Don't manipulate the first variable starting with a $

You can fiddle though with these ones
#define CHARACTER_HEALTH_DEGRADE_BASE 4 // 4% chance per turn health category degrades
#define CHARACTER_HEALTH_DEGRADE_DECA 6 // +6% chance per turn health category degrades if decadent govt (unhealthy habits)
#define CHARACTER_HEALTH_DEGRADE_AGEh 20 // age time this amount (in hundredth) extra chance (age of 40 x 20/100 = +8)
#define CHARACTER_HEALTH_MAX_AGE 80 // starting at this age, you lose one cat per turn

It's in MapGlobals.bsf
AGEOD Team - Makers of Kingdoms, Empires, ACW2, WON, EAW, PON, AJE, RUS, ROP, WIA.
Kerenos
Corporal - 5 cm Pak 38
Corporal - 5 cm Pak 38
Posts: 38
Joined: Tue Feb 16, 2021 1:55 am

Re: Where to mod to reduce max ruler and leader age?

Post by Kerenos »

Thanks. This is just what I was looking for.
Post Reply

Return to “MOD”