About this mod
Makes the Static Skills menu aware of SunHelm's exhaustion debuff in order to prevent your skill points from being lost. Adds a prompt that tells you to sleep longer if you wake up still tired/weary.
- Requirements
- Permissions and credits
Static Skill Leveling patch
The AddSkills menu is triggered by the OnSleepStop event. If you awake still weary because you haven't slept long enough, the AddSkills menu would appear normally, but the skill points you assign wouldn't actually be distributed to your character.
This patch attempts to prevent that by adding a condition to the OnSleepStop event that queries the Current Fatigue Level from SunHelm. If you are still Tired or Weary when you awaken, the AddSkills menu will not appear, and you will instead be prompted to sleep for longer. (The prompts are written in first-person, so it pairs well with Your Own Thoughts).
Static Skill Leveling Rewritten patch
The skill selection menu is combined with the LevelUp Menu, and is trigged by the OnMenuOpen event (whether the player is sleeping or not). If you are weary at the time, the distribution of skill points to your character may break.
In this case, it is not feasible to prompt the player before the menu is open. Instead, this patch records your fatigue state, sets it to zero, and forces a reset of any related status effects - effectively "freezing" fatigue while you assign skill points. During the OnMenuClose event, the skills are actually distributed to your character, only after which will your previous fatigue level be restored along with any related status effects.
Load Order (for either one):
Load this after SunHelm, Experience, and Static Skill Leveling. Let the script from my mod override any conflicts.
Additional Note:
These patches were written to be very papyrus log friendly; if you have logging enabled in Skyrim.ini then you will see potentially useful info about SunHelm's Current Fatigue Level and sleep/wake status as tracked by Static Skill Leveling. See the Papyrus Real-Time Logger page for a great description on of how to enable logging - and while you're there, maybe download the handy PowerShell shortcut!