thanks

begin gameMode DisableControl 26 DisableControl 27endbegin menuMode 1012;Sleeping or Waiting if IsTimePassing == 1 Con_Save SaveSlept endifendbegin menuMode 1038;Load game menu if player.GetDead == 1 Con_LoadGame SaveSlept endif message "You awake from a horrible dream!"end
short variablebegin ScriptEffectStartScriptEnd
Begin ScriptEffectUpdate Begin OnHit Player EndEnd
short isSleepingbegin gameMode DisableControl 26 DisableControl 27 if isSleeping set isSleeping to 0 Con_Save SaveSlept endifendbegin menuMode 1012;Sleeping or Waiting if IsTimePassing == 1 set isSleeping to 1 ;Con_Save SaveSlept endifendbegin menuMode 1038;Load game menu if player.GetDead == 1 Con_LoadGame SaveSlept endif message "You awake from a horrible dream!"end
short variablebegin ScriptEffectStartScriptEnd
Begin ScriptEffectUpdate Begin OnHit Player EndEnd
scn aaaSleepSaveDeathLoadScript2short isSleepingbegin gameMode DisableControl 26;Quicksave control DisableControl 27;Quickload control if isSleeping set isSleeping to 0 Con_Save SaveSlept endifendbegin menuMode 1012;Sleeping or Waiting if IsTimePassing == 1 set isSleeping to 1 endifendbegin menuMode 1038;Load game screen if player.GetDead == 1 Con_LoadGame SaveSlept Message "You wake up from a horrible dream that you've been killed, but after looking over yourself realize that you are fine." endifend