enderalse/scripts/source/_fs_phasmalist_affinitycontrolquest.psc

48 lines
1.4 KiB
Plaintext
Raw Normal View History

Scriptname _FS_Phasmalist_AffinityControlQuest extends Quest
_00E_FS_Affinity_SpectralWarriorSC spectralWarriorEventsListener
_00E_FS_Affinity_RitualistSC ritualistEventsListener
function registerForSpectralWarriorEvents(_00E_FS_Affinity_SpectralWarriorSC script)
spectralWarriorEventsListener = script
EndFunction
function registerForRitualistEvents(_00E_FS_Affinity_RitualistSC script)
ritualistEventsListener = script
EndFunction
function unRegisterForRitualistEvents()
ritualistEventsListener = None
EndFunction
function unRegisterForSpectralWarriorEvents()
spectralWarriorEventsListener = None
EndFunction
; this function is called from _00E_FS_Ritualist_SummonTrackingSC instead of using modevents since those do not work when send from inside a oneffectfinish-event
Function OnPlayerCreatureUnsummon()
if ritualistEventsListener
ritualistEventsListener.OnPlayerUnsummonSummonedCreature()
Endif
Endfunction
Function OnGameLoad()
if spectralWarriorEventsListener
spectralWarriorEventsListener.OnLoadGame()
EndIf
if ritualistEventsListener
ritualistEventsListener.OnLoadGame()
Endif
Endfunction
Function OnStanceBegin(string stanceName)
if spectralWarriorEventsListener
spectralWarriorEventsListener.OnStanceBegin(stanceName)
Endif
EndFunction
Function OnStanceEnd(string stanceName)
if spectralWarriorEventsListener
spectralWarriorEventsListener.OnStanceEnd(stanceName)
Endif
EndFunction