But for some strong and special monsters I'd like to hide in some dungeons (like a reward) a staff that summons them, not a simple spell.
This is the script, copied it from this: http://www.tesnexus.com/downloads/file.php?id=17755
scn 1dkSUMNSCRstaffMMM;This script can be used as a template for custom summoned creatures/NPC'sfloat timerfloat fadeshort playonceref SUMNBegin ScriptEffectStart;Set temp reference for scripting. Allows faster transition of script as template. Also allows for leveled summon. if player.getlevel >= 15 set SUMN to dkBaliwogREF1 elseif player.getlevel >= 8 set SUMN to dkBaliwogREF1 else set SUMN to dkBaliwogREF1 endif SUMN.disable ;Resets our creature if re-summoned before time runs out on spell;Now we move our creature to the Player SUMN.moveto Player 30 30 10 ;Moves the creature reference to the worldspace of the Player SUMN.enable ;Makes our creature visible and active set fade to 1 ;Resets the alpha fade variable to 1EndBegin ScriptEffectUpdate if timer > 30 ;Creature is dead and fade timer passed SUMN.moveto dkCRHold 0 0 10 ;Moves our creature back to it's holding cell SUMN.resurrect ;Resets our creature if dead SUMN.disable ;Sets our creature to an unprocessed state endif if SUMN.getdead && timer < 28 ;Adjusts timer state for early fade/disable upon death set timer to 28 endif if timer > 0.1 && playonce == 0 SUMN.pms effectSummonMythicDawn 1 ;Plays effect for creature entrance set playonce to 1 endif set timer to timer + ScriptEffectElapsedSeconds ;Increment timer if timer > 28 && playonce == 1 SUMN.pms effectSummonMythicDawn 2 ;Plays effect for creature exit/death set playonce to 2 endif if playonce == 2 ;Fade creature for exit/death set fade to fade - 0.03 SUMN.saa fade endif EndBegin ScriptEffectFinish SUMN.moveto dkCRHold 0 0 10 ;Moves our creature back to it's holding cell SUMN.resurrect ;Resets our creature if dead SUMN.disable ;Sets our creature to an unprocessed stateEnd
It seems to work as a "magic effect" but not as an object effect (I attached it to a new staff I made using armamentarium meshes but when it does the animation nothing happends)
Thanks