How to make offline hunger so die in 2 days (real) w/o food

Forum Archive - from http://theuniversal.net
Locked
10dollars

How to make offline hunger so die in 2 days (real) w/o food

Post by 10dollars »

Hi,

Yeh I having trouble setting up the offline needs percentage to make it so a person would die in 2 days (real) without any food being in a house, or out.

is there anything else i need to edit?
User avatar
leigon
World Owner
World Owner
Posts: 563
Joined: Thu Apr 15, 2004 11:23 pm
Location: UK - Programming under the influance.

Post by leigon »

Offline Needs % - Percentage of normal hunger & thirst gain that affects a player when he is offline.
Offline Health Loss % - Percentage of normal health loss that affects a player when he is offline.
change that till F12 says 2 hours... pritty simple. :roll:
10dollars

Post by 10dollars »

maximum 255 health %.. its up to 153 days.. need support here!
User avatar
hedgehog
Staff
Staff
Posts: 1057
Joined: Tue Sep 30, 2003 2:57 am
Location: ann arbor, michigan
Contact:

Post by hedgehog »

just out of curiosity... why do you want people to die in two days of hunger and thirst while offline?

you can set the inactivity time limit in world settings to specify the number of days before their buildings will go up for sale and they get sacked from jobs if you just want to do something like that.

seems weird that if i went offline and got hungry for a day or so i'd be half dead on return... a bit harsh :)
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

Oh i dunno.. if you left the game without food stocked then killing ya in 2 real days seems reasonable enuf.

These things arent easy to set up, 10, its necessarily a complicated system coz its, well, trying to replicate something thats complicated :) Theres no simple, correct answer either - ya can create the same effect in various ways.... you might have ppl get to maximum thirst after 1 hour and then die slowly over 47 hours, or perhaps they get to max hunger after 46 hours then die from starvation in 2.

So no-ones gonna tell you the exact values you need, thats somethin you'll need to work out for yourself (for a start, we dont know how long 2 realtime days is in terms of game days on your world) but heres a simple way to work out the effect you want...

Firstly, offline needs % and online needs % just change the effects of the other hunger and thirst settings - so you need to get the other things right first. The best way to do this is to first set

Code: Select all

Online Needs %
Offline Needs %
Online Health Loss %
Offline Health Loss %
At Rest Health Loss %
At Rest Needs %
all to 100%. Later, once you've got the basic health settings done you can worry about changing those percentages so that ppl in homes or offline or online are affected differently. From the sounds of it you dont want them different anyway.

The actual settings that control how quickly ppl get hungry and thirsty (and subsequently how quickly they die) are the things like the Health Decay Rate etc described lower down in the manual.

To make things easier, id suggest initially you forget completely about Max Health & Thirst. Just try to make it so that when a person has no food, they get hungry and die from health loss in 2 days.
So to ignore Max Health, thirst and some of the other more complicated settings, set the following..

Code: Select all

Max Health Decay Rate = 0
Thirst Increase Rate = 0
Needs/Health Gain Modifier = 0
Needs/Health Loss Modifier = 0
Realtime Health Recovery = 0
Now you're left with two simple settings to adjust to get the effect you want..

Code: Select all

Hunger Increase Rate 
Starving Health Decay
The first one will control how quickly the characters get hungry
The second controls how quickly they die once they are fully hungry.

Set the first value so that your hunger goes up at a rate that means you dont have to buy food too often to stay alive. If you set it too high, players wont be bothered to play because they'd have to spend all their time just trying to eat enuf to stay alive.

Once you've set it to a decent level, wait till your character has got to full hunger (or increase the setting temporarily so your hunger goes to full - dont forget to turn it back to the proper value tho as soon as you're at full hunger), then adjust the Starving Health Decay until you gonna die in the right amount of time. (As leigon said, use the F12 screen to check how long it'll take you to die).

Personally, i think the best sorta settings for this would be to have the Starving Health Decay really high (perhaps set to the max = 25,600), and the Hunger Increase Rate quite low - i.e. such that your players take almost 2 real days to get fully hungry, but almost as soon as they do they die.

Once you've got those two settings right, it becomes a lot easier to add other factors like thirst or a benefit for being at home. To add thirst, just set the Thirst Increase Rate similar to the hunger increase rate. To make ppl live longer in their houses, reduce the 'At rest Needs Percentage'.
Last edited by Mit on Mon Oct 25, 2004 4:12 pm, edited 3 times in total.
User avatar
hedgehog
Staff
Staff
Posts: 1057
Joined: Tue Sep 30, 2003 2:57 am
Location: ann arbor, michigan
Contact:

Post by hedgehog »

http://theuniversal.net/forum/viewtopic.php?t=1141

might shed some light on things by example, in addition to the rather incomplete manual documentation and the bits above.
Locked