Jump to content

[LE] You'd Think It'd Be Simple: How To Make Sleeping NOT Restore All Attributes


Darkfoot

Recommended Posts

Hi everyone, pretty much what the title says, I would like to know how i can use the CK to cause sleeping to NOT reset the players health anymore.

 

I am playing a hardcore play through and currently have no means of natural health regeneration over time, meaning i have to use potions spells or healers throughout Skyrim.

 

During times where i start to actually struggle in the game and am about to die, I always have an easy way by just pulling out my bed roll and sleeping for 1 hour to restore all HP no matter the magnitude of the injury, which just makes me feel OP.

 

 

 

Thanks in advance.

Edited by Darkfoot
Link to comment
Share on other sites

I think the only way would be to use a script that records your health when you start sleeping and then damages it back to that when you wake up. I haven't tested it but the general idea would be something like this attached to a quest.

ScriptName NoSleepRestoreHealth extends Quest

float lastHealth

Function OnInit()
	RegisterForSleep()
EndFunction

Event OnSleepStart(float afSleepStartTime, float afDesiredSleepEndTime)
	lastHealth = Game.GetPlayer().GetActorValue("Health")
EndEvent

Event OnSleepStop(bool abInterrupted)
	Actor PlayerRef = Game.GetPlayer()
	PlayerRef.DamageActorValue("Health", PlayerRef.GetActorValue("Health") - lastHealth)
EndEvent
Link to comment
Share on other sites

  • 2 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...