ScriptName SacrierBloodScriptFloat FQuestDelayTimeShort BoostStrShort ResetStrShort BaseStrShort BoostAgiShort ResetAgiShort BaseAgiShort BoostIntShort ResetIntShort BaseIntShort BoostWilShort ResetWilShort BaseWilShort BoosterShort CurrentHPShort LastHPShort MaxHPBegin GameModeIf (FQuestDelayTime != 1)Set FQuestDelayTime to 1EndIfSet BaseStr to Player.GetBaseAV StrengthSet BaseAgi to Player.GetBaseAV AgilitySet BaseInt to Player.GetBaseAV IntelligenceSet BaseWil to Player.GetBaseAV WillpowerSet MaxHP to Player.GetBaseAV HealthIf GetPCIsRace SacrierSet CurrentHP to Player.GetAV HealthIf CurrentHP < LastHPSet Booster to (LastHP - CurrentHP)Set BoostStr to BoosterSet BoostAgi to BoosterSet BoostInt to BoosterSet BoostWil to BoosterPlayer.ModAV Strength BoosterPlayer.ModAV Agility BoosterPlayer.ModAV Intelligence BoosterPlayer.ModAV Willpower BoosterElseIf CurrentHP > LastHPSet ResetStr to (-Booster)Set ResetAgi to (-Booster)Set ResetInt to (-Booster)Set ResetWil to (-Booster)If Player.GetAV Strength >= BaseStrPlayer.ModAV Strength ResetStrPlayer.ModAV Agility ResetAgiPlayer.ModAV Intelligence ResetIntPlayer.ModAV Willpower ResetWilEndIfElseIf CurrentHP == MaxHPPlayer.ForceAV Strength BaseStrPlayer.ForceAV Agility BaseAgiPlayer.ForceAV Intelligence BaseIntPlayer.ForceAV Willpower BaseWilEndIfSet LastHP to CurrentHPEndIfEnd
Now, in Oblivion I was simply able to attach this to a quest script and let it run in the background. But in Skyrim, it appears that it needs to extend an object. So how do I get a script to attach to the player character and let it run in the background?
Similarly, is there a more efficient method of doing this? Or is what I got basically the best method for it? (As a small explanation, the script looks to see if the player gets hurt, then increases or decreases stats based off of the difference in health.)


