enderalse/source/scripts/_00e_playersetupscript.psc

27 lines
854 B
Plaintext
Raw Normal View History

Scriptname _00E_PlayerSetUpScript extends Actor
{Initializes player's actor values}
int function _GetScriptVersion() Global
return 1
endFunction
2021-10-05 22:59:59 +00:00
;=====================================================================================
; EVENTS
;=====================================================================================
Event OnInit()
SetActorValue("speedMult", 95)
SetActorValue("Healrate", 0)
EndEvent
Event OnPlayerLoadGame()
; changes to the actor value healrate will not persist in consecutive saves
; every time a save gets loaded the healrate needs to be set to 0, otherwise it will go back again to default at 0.7
; this is called before active magic effects of potions or spells are applied to the player which could also alter the value
SetActorValue("Healrate", 0)
EndEvent