enderalse/scripts/source/_00e_fs_affinity_transformapparation.psc

20 lines
843 B
Plaintext
Raw Normal View History

Scriptname _00E_FS_Affinity_TransformApparation extends activemagiceffect
_FS_Phasmalist_ControlQuest Property ControlQuest Auto
Message Property _00E_Phasmalist_NoApparitionCurrentlySummoned Auto
Spell Property _00E_FS_Affinity_Soulcaller_ApparationWolfFormSP Auto
MagicEffect Property _00E_FS_Affinity_Soulcaller_ApparationWolfFormME Auto
Event OnEffectStart(Actor akTarget, Actor akCaster)
If ControlQuest.apparationAlias.getReference() != None
Actor apparation = ControlQuest.apparationAlias.GetActorReference()
if (apparation.HasMagicEffect(_00E_FS_Affinity_Soulcaller_ApparationWolfFormME))
apparation.dispelSpell(_00E_FS_Affinity_Soulcaller_ApparationWolfFormSP)
Else
_00E_FS_Affinity_Soulcaller_ApparationWolfFormSP.cast(apparation)
Endif
Else
_00E_Phasmalist_NoApparitionCurrentlySummoned.Show()
EndIf
Endevent