Make spells for return

This commit is contained in:
fluo10 2025-03-13 18:28:10 +09:00
parent d785121476
commit 1faacce0dc
5 changed files with 25 additions and 11 deletions

BIN
ConjurableMaid.esp (Stored with Git LFS)

Binary file not shown.

BIN
Scripts/FCMReturnMaidScript.pex (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Scripts/FCMSummonMaidScript.pex (Stored with Git LFS)

Binary file not shown.

View file

@ -0,0 +1,13 @@
Scriptname FCMReturnMaidScript extends activemagiceffect
ObjectReference Property pMaidRef Auto
keyword Property pReturnMaidMagicKeyword Auto
Event OnEffectFinish(actor akTarget, actor akCaster)
if (Game.GetPlayer().hasMagicEffectWithKeyword(pReturnMaidMagicKeyword))
Debug.Trace("Player still have return magic effect")
else
Debug.Trace("Start Returning")
(pMaidRef as FCMSpectralMaidScript).TryReturn()
endif
endEvent

View file

@ -1,12 +1,10 @@
Scriptname FCMSummonMaidScript extends activemagiceffect
ObjectReference Property MaidRef Auto
Bool Property IsSpectral Auto
ObjectReference Property pMaidRef Auto
Bool Property pIsSpectral Auto
Spell Property pReturnMaidSpell auto
Event OnEffectStart(actor akTarget, actor akCaster)
(MaidRef as FCMSpectralMaidScript).TryConjure(isSpectral)
EndEvent
Event OnEffectFinish(actor akTarget, actor akCaster)
(MaidRef as FCMSpectralMaidScript).TryReturn()
(pMaidRef as FCMSpectralMaidScript).TryConjure(pIsSpectral)
pReturnMaidSpell.Cast(akCaster, akCaster)
EndEvent