2024-01-11 12:14:18 +00:00
|
|
|
Scriptname _00E_PlayerSetUpScript extends Actor
|
2023-11-28 18:31:31 +00:00
|
|
|
{Initializes player's actor values}
|
2021-10-05 22:15:58 +00:00
|
|
|
|
2023-10-26 19:22:14 +00:00
|
|
|
int function _GetScriptVersion() Global
|
|
|
|
return 1
|
|
|
|
endFunction
|
2021-10-05 22:59:59 +00:00
|
|
|
|
2021-10-05 22:15:58 +00:00
|
|
|
;=====================================================================================
|
|
|
|
; EVENTS
|
|
|
|
;=====================================================================================
|
|
|
|
|
|
|
|
Event OnInit()
|
2023-11-28 18:31:31 +00:00
|
|
|
|
2024-01-11 12:14:18 +00:00
|
|
|
SetActorValue("speedMult", 95)
|
|
|
|
SetActorValue("Healrate", 0)
|
2021-10-05 22:15:58 +00:00
|
|
|
|
|
|
|
EndEvent
|
|
|
|
|
|
|
|
Event OnPlayerLoadGame()
|
2021-11-29 02:47:56 +00:00
|
|
|
|
2021-10-05 22:15:58 +00:00
|
|
|
; 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
|
2024-01-11 12:14:18 +00:00
|
|
|
SetActorValue("Healrate", 0)
|
2021-12-29 21:20:10 +00:00
|
|
|
|
2023-11-28 18:31:31 +00:00
|
|
|
EndEvent
|