For those players who like immersion and realism, we have Real Sleep. After a certain number of hours, your character becomes sleepy. If you continue to go without sleep you will be penalized through stat degradation.
========= REAL SLEEP V1.4 ============
Author: Dominic Watson
Date: 1st May, 2006
Description: If you don't sleep, you get tired!
========= UPDATE LOG
1.3 -> 1.4
* Ok, once and for all I have fixed the stat drain issue. For those interested, I was using the GameDay variable instead of the GameDaysPassed variable (GameDay being 0-6 for the days of the week, causing negative values for the time passed calculations and screwing things up.)
1.2 -> 1.3
* Fixed possible cheat of the system. In previous versions, you were able to start sleeping, cancel out of it, and still receive the sleep bonus (with no time passing). This is no longer possible.
1.1 -> 1.2
â�¢ Fixed bug that prevents sleep adjustments from being calculated properly.
â�¢ A message telling you your sleep requirements now appears when you activate a bed and sleep menu (â��How long do you wish to rest for?â��),
1.0 -> 1.1
* Fixed prison bug. In 1.0, when you came out of jail, your tiredness level was calculated incorrectly (possibly resulting in instant death), this is now fixed.
* Level of tiredness is unlimited (0=Awake -> inf=somewhat tired). So in theory, if you were a God, you wouldnt need to sleep.
* When you view the stats menu, a message appears displaying how much sleep you need to be fully recovered.
* When you get tired, messages appear to tell you that you need sleep.
* All stats are effected by tiredness (Agility, Endurance, Strength, Willpower, Intelligence, Personality,Speed & Luck). Health & fatigue are not directly effected but your max health and fatigue will diminish as your stats are drained.
* For every 2 hours awake you need 1 hour asleep (to be fully awake). This works out at 8 hours a day.
========= HOW IT WORKS, NUMBERS, ETC.
From the moment you wake up fresh as a daisy (Tiredness level 0), you have a certain number of hours awake before tiredness kicks in. I call this your tiredness threshold. Every character has a minimum threshold of 8 hours. In addition to that you get 10% (in hours) of your endurance level. So, if you had an Endurance level of 40 you would get 8 + (40/10) = 12 hours threshold.
After you have been awake longer than your threshold, you get a -1 hit to all of your stats for every hour you stay awake, simple as that.
When you sleep, you recover twice the hours you have been awake. So, you have a threshold of 12, and you have been awake 16 hours. At the moment all your stats are being drained by 4. If you sleep for 8 hours, you will be fully rested. If you sleep for 2 hours it will be as if you had been awake for 12 hours; your stats would no longer be drained but they will start being drained within the next hour.
Is that confusing?! I hope not. A summary:
Threshold = (Endurance / 10) + 8
Damage to stats = Hours awake - threshold
1 hour asleep recovers 2 hours of tiredness.