Increasing health per hour of rest.

Post » Fri May 04, 2012 7:08 pm

I'm trying to increase the health gained per hour of rest. I've found mention of a stat call sHealthPerHourOfRest in the Menu section of Game Settings but can't find any actual number to change anywhere.
User avatar
Averielle Garcia
 
Posts: 3491
Joined: Fri Aug 24, 2007 3:41 pm

Post » Fri May 04, 2012 4:29 pm

It would be under the Gameplay tab of the (Game) Settings menu. All that I can find that sounds relevant is fSleepRestMod. Morrowind Scripting for Dummies declares it is unused (and not what it might govern). It has an initial setting of 0.3. You might play around with that value to see if it does anything. I would be surprised that this would be hard-coded, but I have not found anything other gamesetting that appears more promising. Good luck.
User avatar
Charlotte X
 
Posts: 3318
Joined: Thu Dec 07, 2006 2:53 am

Post » Fri May 04, 2012 7:15 am

If you can't find a game setting that controls the health regen then you should be able to at least add to it using this script. I haven't tested it yet but it should work. However I'd definitely suggest using a game setting over a script to get the job done if possible.

Begin Health_Regen_ScriptFloat hourShort hourset; This reads when the player sleeps or waits for an hour and causes the player to regenerate health accordinglyIf ( Menumode == 1 )If ( Hourset == 0 )Set Hour to GameHourSet Hourset to 1ReturnEndifElseif ( Menumode == 0 )If ( Hourset == 1 )Set Hourset to 0EndifEndifIf ( GetPCSleep == 0 )ReturnEndifIf ( Menumode == 1 )If ( Hour != Gamehour )Player->ModCurrentHealth 10 ; Change this number to add more health or less healthReturnElseif ( Hour == Gamehour )ReturnEndifEndifEnd
User avatar
jess hughes
 
Posts: 3382
Joined: Tue Oct 24, 2006 8:10 pm


Return to III - Morrowind