More Awesome Than You!

TS3/TSM: The Pudding => The World Of Pudding => Topic started by: Caitlin on 2009 June 23, 18:25:43



Title: Life Extension?
Post by: Caitlin on 2009 June 23, 18:25:43
Sim lifespan seems pretty variable- some Elders live to 90, others to over 120- but are there definitive benefits from traits and perks? Does the Vegetarian trait or Marathon Runner athletic accomplishment add a set number of days to a Sims life? For even more questioney goodness, do any perks gained while a Sim is an elder make any difference on their lifespan? I'm currently testing the Vegetarian vs non-Vegetarian lifespan, but has anyone else discovered, either in code or in gameplay, facts relating to lifespan?


Title: Re: Life Extension?
Post by: Elyanna on 2009 June 23, 19:11:24
My vegetarian male with the marathon runner athletic achievement died younger than his meat-eating, sedentary wife. He lived to 93; she lived to 95.


Title: Re: Life Extension?
Post by: phyllis_p on 2009 June 23, 19:31:02
My elders have ranged 90 - 125 at the time of death.  None were vegetarians or athletes.  I honestly can't see any reason why some outlived others.


Title: Re: Life Extension?
Post by: Marhis on 2009 June 23, 21:08:09
According to the code, Elders' minimum age is 2.428 multiplied for the constant k[lifespan]SimDaysPerAgingYear, which is 2 for Short, 4 for Medium, 7 for Normal, 15 for Long, 75 for Epic.

This means the minimum age in days for Elders should be:
  • 4.856 for Short lifespan (25 days total)
  • 9.712 for Medium lifespan (50 days total)
  • 16.996 for Normal lifespan (90 days total)
  • 36.42 for Long lifespan (190 days total)
  • 182.1 for Epic lifespan (970 days total)

After this minimum, each day there's a probability the elder will die, as follows:
  • 30% for Short lifespan
  • 20% for Medium lifespan
  • 14% for Normal lifespan
  • 6% for Long lifespan
  • 3% for Epic lifespan

The only modifier I found is for elder marathon runners (max athletic?), which have their daily chance of dying multiplied for 0.75 - for example 10.5% instead of 14% in case of Normal lifespan.
Unless there's something else hardcoded elsewhere, this seems to be the only thing that affects lifespan.

BTW I foresee Elders' persistence in case of Epic lifespan truly terrifying.


Title: Re: Life Extension?
Post by: Aaroc on 2009 June 24, 13:41:24
I guess that explains why Flo Broke was around for three generations in one of my Riverview games. She only had a 6% chance to die per day. I guess she was just lucky.