4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

32 lines
1.2 KiB

Scriptname _FS_TheriantrophistControlQuest extends Quest
; top layer script for the theriantrophist system that provides an entry point
; and propagates events to _00E_Theriantrophist_WhileTransformed
; this is a facade to the theriantrophist system
_00E_Theriantrophist_PlayerAsWerewolf Property playerWhileTransformed Auto
; use only if necessary, if possible add _FS_TheriantrophistControlQuest as a property!
_FS_TheriantrophistControlQuest function getControlQuest() global
return Game.GetFormFromFile(0x01029bb5, "Enderal - Forgotten Stories.esm") as _FS_TheriantrophistControlQuest
Endfunction
; called on loadgame by _00E_Theriantrophist_LoadGameFailsave, attached to an alias of quest abilities
function LoadGameInit()
playerWhileTransformed.OnPlayerLoadGame()
Endfunction
Function TransformBackIfTransformed() global
getControlQuest().playerWhileTransformed.TransformBackIfTransformed()
EndFunction
bool Function IsTransformed()
return playerWhileTransformed.IsTransformed()
EndFunction
_00E_Theriantrophist_PlayerAsWerewolf Function GetPlayerAsWerewolfAlias()
return playerWhileTransformed
EndFunction
_FS_Theriantrophist_AffinityControl Function GetAffinityControl()
return (self as Quest) as _FS_Theriantrophist_AffinityControl
EndFunction