35 lines
886 B
Plaintext
35 lines
886 B
Plaintext
Scriptname _00E_FS_EssenceGiftSC extends activemagiceffect
|
|
|
|
Event OnEffectStart(Actor akTarget, Actor akCaster)
|
|
|
|
Actor akApparition = apparitionAlias.GetActorReference()
|
|
|
|
if akApparition == None
|
|
|
|
_00E_FS_EssenceGift_NoApparition.Show()
|
|
akCaster.RestoreActorValue("Magicka", Self.GetMagnitude())
|
|
|
|
Else
|
|
|
|
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())
|
|
|
|
EndIf
|
|
|
|
|
|
EndEvent
|
|
|
|
_00E_Phasmalist_ApparationAlias Property apparitionAlias Auto
|
|
|
|
Message Property _00E_FS_EssenceGift_NoApparition Auto
|
|
|
|
Sound Property _00E_FS_Phasmalist_EnterWorld_Male Auto
|
|
Sound Property _00E_FS_Phasmalist_EnterWorld_Female Auto
|
|
|
|
EffectShader Property AbsorbGreenFXS Auto |