19 lines
No EOL
647 B
Text
19 lines
No EOL
647 B
Text
Scriptname FCMSummonMaidScript extends activemagiceffect
|
|
|
|
ObjectReference Property pMaidRef Auto
|
|
Bool Property pIsSpectral Auto
|
|
Keyword Property pSummonMaidMagicKeyword Auto
|
|
|
|
Event OnEffectStart(actor akTarget, actor akCaster)
|
|
(pMaidRef as FCMSpectralMaidScript).TryConjure(pIsSpectral)
|
|
EndEvent
|
|
|
|
|
|
Event OnEffectFinish(actor akTarget, actor akCaster)
|
|
if (Game.GetPlayer().hasMagicEffectWithKeyword(pSummonMaidMagicKeyword))
|
|
Debug.Trace("Player still have return magic effect")
|
|
else
|
|
Debug.Trace("Start Returning")
|
|
(pMaidRef as FCMSpectralMaidScript).TryReturn()
|
|
endif
|
|
endEvent |