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
