why isnt this working? i modified a script i got from another. im not going to release it, itss just for my own use. its supposed to heal my unbroken limbs and health by an amount equal to my END for every hour of sleep.thanx
scn aLimbRegen; limb regen IF not brokenfloat HealValuefloat HealRatefloat SleepTimeshort PerkBonus;Int EnduValueInt OncePerBegin MenuMode If GetPCSleepHours != 0 && OncePer == 0 Set SleepTime to GetPCSleepHours Set PerkBonus to 1 if (player.HasPerk FastMetabolism) == 1 Set PerkBonus to 2 Endif Set HealRate to (Player.GetAV Endurance * PerkBonus) Set HealValue to HealRate * SleepTime if player.GetActorValue PerceptionCondition > 0 Player.RestoreActorValue PerceptionCondition HealValue Endif if player.GetActorValue EnduranceCondition > 0 Player.RestoreActorValue EnduranceCondition HealValue Endif if player.GetActorValue LeftAttackCondition > 0 Player.RestoreActorValue LeftAttackCondition HealValue Endif if player.GetActorValue RightAttackCondition > 0 Player.RestoreActorValue RightAttackCondition HealValue Endif if player.GetActorValue LeftMobilityCondition > 0 Player.RestoreActorValue LeftMobilityCondition HealValue Endif if player.GetActorValue RightMobilityCondition > 0 Player.RestoreActorValue RightMobilityCondition HealValue Endif Player.RestoreAV Health HealValue Endif Set OncePer to 1EndBegin GameMode If OncePer == 1 Set OncePer to 0 EndifEnd