27 lines
854 B
Plaintext
27 lines
854 B
Plaintext
Scriptname _00E_PlayerSetUpScript extends Actor
|
|
{Initializes player's actor values}
|
|
|
|
int function _GetScriptVersion() Global
|
|
return 1
|
|
endFunction
|
|
|
|
;=====================================================================================
|
|
; 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
|