Make spells for return
This commit is contained in:
parent
d785121476
commit
1faacce0dc
5 changed files with 25 additions and 11 deletions
BIN
ConjurableMaid.esp
(Stored with Git LFS)
BIN
ConjurableMaid.esp
(Stored with Git LFS)
Binary file not shown.
BIN
Scripts/FCMReturnMaidScript.pex
(Stored with Git LFS)
Normal file
BIN
Scripts/FCMReturnMaidScript.pex
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
Scripts/FCMSummonMaidScript.pex
(Stored with Git LFS)
BIN
Scripts/FCMSummonMaidScript.pex
(Stored with Git LFS)
Binary file not shown.
13
Source/Scripts/FCMReturnMaidScript.psc
Normal file
13
Source/Scripts/FCMReturnMaidScript.psc
Normal 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
|
|
@ -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
|
Loading…
Add table
Reference in a new issue