SkyrimSE_ConjurableMaid/Source/Scripts/FCMSummonMaidScript.psc

19 lines
647 B
Text
Raw Normal View History

2025-03-07 15:52:42 +09:00
Scriptname FCMSummonMaidScript extends activemagiceffect
2025-03-13 18:28:10 +09:00
ObjectReference Property pMaidRef Auto
Bool Property pIsSpectral Auto
2025-03-14 09:34:25 +09:00
Keyword Property pSummonMaidMagicKeyword Auto
2025-03-07 15:52:42 +09:00
Event OnEffectStart(actor akTarget, actor akCaster)
2025-03-13 18:28:10 +09:00
(pMaidRef as FCMSpectralMaidScript).TryConjure(pIsSpectral)
2025-03-14 09:34:25 +09:00
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