Hi,
Sounds like a fun spell. I look forward to trying it out.
Firstly you would need to create a script in the Construction Set. Set the script type to a magic type.
This is only a rough draft...
E.G
CODE
Begin MyFirstReanimateSpell
; Create a new reference variable to place the actor in
ref TargetRef
Begin ScriptEffectStart
; Return the targeted actor
set TargetRef to GetSelf
; If not an actor then display a message and exit
if ( TargetRef.IsActor != 1 )
Message "No Effect"
return
endif
if ( TargetRef.GetDead != 1 )
Message "Target is Alive"
return
else
TargetRef.Resurrect 1
TargetRef.ResetHealth
endif
End
Notes:
If the targeted NPC was an enemy before they died you would need to raise their disposition toward the player, otherwise he/she would attack you.
You may also want to remove any factions that the NPC may be a part of. It's not compulsary however.
If you don't have it already I'd recommend getting a utility called OBSE (Oblivion Script Extender)
http://obse.silverlock.org/It seriously expands the abilities of the scripter and adds loads of useful commands.
If you've got OBSE installed I'd add in the following check after the "if ( TargetRef.IsActor != 1 )" block.
CODE
; If the actor is scripted or essential, leave them alone
if ( TargetRef.IsScripted != 0 ) || ( TargetRef.IsEssential != 0 )
Message "No Effect"
return
endif
For the orders you would need to add conversation topics using the addtopic command. Take a look at some of the cm_companion mods to learn a little more. Learn how to create packages and how to add and remove them dynamically.
Inteferring with dead NPC could be problematic, especially if they were part of a quest and were supposed to remain dead. You may need to remove any existing packages they have, otherwise you may resurrect them and they will resume their previous routine(s), i.e eating, sleeping, wandering.
Sorry I couldn't help more, I'm not using my computer. Let me know if I can help further.
The Elder Scrolls Wiki is a great source of information, check it out.
http://cs.elderscrolls.com/constwiki/index.php/Main_Page