Page 1 of 1
Where to mod to reduce max ruler and leader age?
Posted: Wed May 19, 2021 11:08 pm
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
Re: Where to mod to reduce max ruler and leader age?
Posted: Thu May 20, 2021 12:38 am
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.
Re: Where to mod to reduce max ruler and leader age?
Posted: Mon May 24, 2021 7:14 am
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
Re: Where to mod to reduce max ruler and leader age?
Posted: Mon May 24, 2021 3:10 pm
by Kerenos
Thanks. This is just what I was looking for.