Synte wrote on Tue, 27 April 2010 19:18 |
Each skill rise = .7 game years, aging in game stops at 65.
Ill soon make a new game and add skills to see if there are any glitches in my method, but I really can't se ehow increasing the max age to 5000 would make you forever young, unless the max age is held in an integer which cannot hold a number greater than 256, so 5k is overkill, if that is the case anything over 256 would work. So far Ive encountered no problems in my method, but again I need to make a new game and add skills to be certain. Thank you for your input.
|
Aging in-game stops at 65 because that's the limit. By increasing the limit, one can get as old as 105.5 through skill upgrades, older with time spent in prison or sailing to Northern Wastes, I think they each add a year or something like that.
But age morphing is not determined solely by how old you are. It's a simple equation for percentage. (Current-Min)/(Max-Min) = Percent of age morphing. So if the minimum is 18, the maximum is 65, and the Hero is currently 40, that would be (40-18)/(65-18), 22/47, or about 47% of age morphing. So by setting the maximum age really, really high, like 10000000000, and you max out skill upgrades and say spend three years in jail and spend another two crossing an ocean, the age morphing is down to about 0.0000009% at 110.5 years old. And Minimum/Maximum age values are floats, you should already know since the age increase variable is 0.7, come on man.
You can find them in HERO_STATS, they're labeled. Now, while I hate to admit it, setting the minimum and maximum age to the same thing, such as 18, is reported to work to keep the Hero appearing young. I don't like it though, because I never learned how to divide by zero... (18-18)/(18-18)=WTF... But if it works, meh.
You could also change the value of age increase to 0.0, remove the old texture morphing from the CHeroMorphDef, or swap out old textures for either young textures or transparent textures. We have all the secrets of old age, but messing with the maximum age variable is easiest. None are known to have any adverse affects.