enderalse/source/scripts/_00e_fs_essencegiftsc.psc

33 lines
984 B
Plaintext
Raw Normal View History

Scriptname _00E_FS_EssenceGiftSC extends activemagiceffect
2021-10-05 22:59:59 +00:00
_FS_Phasmalist_ControlQuest Property PhasmalistControlQuest Auto
2021-10-05 22:59:59 +00:00
Message Property _00E_FS_EssenceGift_NoApparition Auto
2021-10-05 22:59:59 +00:00
Sound Property _00E_FS_Phasmalist_EnterWorld_Male Auto
Sound Property _00E_FS_Phasmalist_EnterWorld_Female Auto
EffectShader Property AbsorbGreenFXS Auto
Event OnEffectStart(Actor akTarget, Actor akCaster)
Actor akApparition = None
If PhasmalistControlQuest.IsApparitionSpawned()
akApparition = PhasmalistControlQuest.GetApparitionFailsafeRef()
Else
2021-10-05 22:59:59 +00:00
_00E_FS_EssenceGift_NoApparition.Show()
EndIf
If akApparition && akApparition.Is3DLoaded()
If akApparition.GetActorBase().GetSex() == 1
_00E_FS_Phasmalist_EnterWorld_Female.Play(akApparition)
Else
_00E_FS_Phasmalist_EnterWorld_Male.Play(akApparition)
EndIf
AbsorbGreenFXS.Play(akApparition)
akApparition.RestoreAV("Magicka", Self.GetMagnitude())
2021-10-05 22:59:59 +00:00
Else
akCaster.RestoreAV("Magicka", Self.GetMagnitude())
EndIf
EndEvent