About this mod
Adds a Resurrection Spell that can be obtained in whiterun or winterhold
- Permissions and credits
between 0 and 24 the target will revive and be healed to 10%
between 25 and 49 the target will revive and be healed to 20%
between 50 and 54 the target will revive and be healed to 30%
between 55 and 59 the target will revive and be healed to 40%
between 60 and 64 the target will revive and be healed to 50%
between 65 and 69 the target will revive and be healed to 60%
between 70 and 74 the target will revive and be healed to 70%
between 75 and 79 the target will revive and be healed to 80%
between 80 and 89 the target will revive and be healed to 90%
between 90 and above the target will revive and be healed to 100%
Where it Can Be Found
Using the Main file the spell comes in two forms tome or scroll both can be gotten in whiterun or the collage in winterhold Using the optional file and no other mod that replaces the LitemScroll forms it may be found randomly at other vendors or as loot.
one scroll can be found free in whiterun.
Do not waste your scrolls on animals or undead this will only resurrect people the same group that can be made into dead thrall/reanimated ones and was mainly intended to resurrect dead followers or a quest required npc that ocasionaly gets killed by dragons/bandits/etc.
IF the Target is dismembered or turned into ashes it probably wont be able to be resurrected.
How it works
creates a new spell called Resurrection found Under restoration
When executed it will resurrect any npc target that could have been reanimated using the normal spells that makes them a follower only this one leaves them back in there normal state that means if you resurrect an enemy it will attack you again.
during the resurrection process the standard inventory contents are transfered to a hidden container in a dummy cell then back to the npc after the resurrect command is given to avoid loosing items you have given a follower when resurrecting them.
Known Bugs.
NPC that spawn dead can not be resurrected they will fall dead again as they are programed to be dead at spawn.
NPC that are actually containers llike the ones found in that pit where the vampires are will not resurrect or will just stand there after being resurrected.
Some random NPCs that are encountered like Frightened Woman that tells you where mystwatch is may follow you around untill you execute EVP in the console on them not shure why as the resurrect effect is supposed to do this at its end so far have only ran into 2 npc that do this the one mentioned and one of the ones outside of riften. Added a utility.wait at effect finish followed by EVP to hopefully fix this
Due to the way the npcs handle clothes they will respawn with the default clothes back in thier inventory even if it was looted before being resurrected.(in the editor the characters have 3 slots normal clothes, sleeping clothes, and the normal inventory this is what causes the clothes to be back if they were looted before resurrecting.) Added lines to hopefully prevent this.
Some NPC characters that set quest variables for dialogue to refer to them as dead may still be talked about as dead for example if the player revives the leader that is killed at the end of the war whatever side you chose the side that lost thier leader will still have the dialogue of them being dead or if it checks to see if the character ever died instead of is currently dead.
Update V2
Added the line to make them give the response they give when being healed after they are resurrected.
Increased the delay 1 second so the animation progresses a bit further before the script resurrects them
Added a delay at the end before the EvaluatePackage command is issued to give a bit more time before the followers run off for you to talk to them as the game auto fires them on death.
Update V3
The same file as before but with the extra changes crazyjackal discovered removed. I still have no idea how the locations other than whitrun got changed and all I changed there was adding the scroll on the desk in the room with the enchanter.
Update V4
1) Added a menu when it first runs where you can select to have the mod install the spell to use either scroll only, book only, or both scroll and book (the menu will still pop up once if you already use the mod and will only effect if the scrolls respawn if you select book only method existing ones will still be in the game.
2) fixes a small bug that sometimes the resurrected would jump to a different spot instead of right where they were standing at the end of the animation.
3) Placed some of the spawns as corpses npcs in a form list so they resist the spell rather than turn into a standing corpse the ones that show up using corpse or dead in the id filter in the Creation Kit or use those as a template. Some will still do this as they are not marked and some that were walking around sometimes do this anyway I have posted a picture showing one in the Creation Kit and how it is flagged that I believe to be causing this to happen. Added an isdead check. if the npc is still a corpse after the resurrect command it will be replaced be a new actor from the same base object. The original will be sent to WIDeadBodyCleanupCell.
4) Had it add the scroll to the LItemScroll00Skill item if one of the scroll options was selected so hopefully it will show up as random loot or at vendors that sell that item throughout the game.
Note
If a mod does not include the script source then no one else can customize that script for themselves.
Though this is may be good for those that do not want someone else editing and releasing mods that they made without permission it makes it impossible to check some of the original scripts that came with the game or look into the cause of some conflicts between mods and learn some of the syntax showing how to implement any commands not covered in the web pages about using the Creation Kit. for example how the basic part of Reanimate works or most any of the spells.
The name.pex is the compiled version found in data\scripts the name.psc found in data\scripts\source is needed by the creation kit to edit the scripts. It also means that modders that want to allow their mods to be customized by those using them have to include extra files in the download. For example fcteresurrectscr.psc as well as the file fcteresurrectscr.pex
Version 5
Added lines to temp disable player controls move player into a dummy cell and back renable player controls this will appear as a brief black screen during the spell this seems to fix the ctd when talking to them immediately after resurrecting them.
Changed a line in WIDeadBodyCleanupScript line was
bool function checkForCleanup()
if IsInFaction(WI.WINoBodyCleanupFaction)
; debug.trace("WIDeadBodyCleanupScript" + self + "In Faction WINoBodyCleanupFaction so NOT cleaning up body.", 1)
;do nothing
return true ;bail out of while loop
Elseif Is3DLoaded() == False
changed to
bool function checkForCleanup()
if IsInFaction(WI.WINoBodyCleanupFaction) || IsDead() == 0
; debug.trace("WIDeadBodyCleanupScript" + self + "In Faction WINoBodyCleanupFaction so NOT cleaning up body.", 1)
;do nothing
return true ;bail out of while loop
Elseif Is3DLoaded() == False
this should fix some of them to not vanish or cleanup if they have been brought back to life.
Version 6
Thanks to Profe for reminding me about the relationship rank I should have thought about that variable the first version of the mod and Nemulus for reminding me about cleaning the mod the creation kit it seems changes some things that are not even looked at sometimes as well as leaves some changes that were removed in the mod.
In this version it will set a variable to the relationship rank when starting and then sets the relationship rank back after the resurrect command is given.
Basicly added the lines below in the appropriate locations
Int Property frel Auto
frel = akTarget.GetRelationshipRank(Game.GetPlayer())
akTarget.SetRelationshipRank(Game.GetPlayer(), frel)
Added a fade to black that covers the player being moved to a dummy cell and back this eliminated the ctd of saving right after resurrecting that still happened after I cleaned the mod.
Version 7
Tweaked the fade to black to better cover the item removal and return as well as the cell change from and back.
Added the below listed variables to the ones that are stored before resurrecting and reset to the stored value after.
HealRate
MagickaRate
StaminaRate
attackDamageMult
SpeedMult
WeaponSpeedMult
CarryWeight
CritChance
MeleeDamage
UnarmedDamage
VoicePoints
VoiceRate
DamageResist
PoisonResist
FireResist
ElectricResist
FrostResist
MagicResist
NormalWeaponsResist
Paralysis
Invisibility
NightEye
DetectLifeRange
WaterBreathing
WaterWalking
JumpingBonus
WardPower
Aggression
Confidence
Energy
Morality
Mood
Assistance
WaitingForPlayer
OneHanded
TwoHanded
Marksman
Block
Smithing
HeavyArmor
LightArmor
Pickpocket
Lockpicking
Sneak
Alchemy
Speechcraft
Alteration
Conjuration
Destruction
Illusion
Restoration
Enchanting
Magicka
Stamina
Health
Variable01
Variable02
Variable03
Variable04
Variable05
Variable06
Variable07
Variable08
Variable09
Variable10
Version 8
Added an alternate animation option now when starting you can choose between the existing animation or the restoration animation the only difference will be the swirling animation both will still stand up. Note if yo want the new animation without reinstalling the mod open the console and type
prid xx00aa77 ; xx will be replaced by where you have the mod in the load order
setav variable10 1
tweaked the fade/out and added sound during the blackout portion
added a line that should make hostile npc take a little longer before becoming hostile again after resurrection.
Made a change to how the health variable is handled that might fix the stacking health issue some reported cant actually test as I have been unable to reproduce the error.
edit
Re uploaded ver8 after finding the file header count was off after making an edit in TESVSnip to remove forms that the creation kit altered even though I did no editing to them and correcting the error.
Version 9
This version includes the ability to resurrect the standard player horses from the base game.
This should also allow Sinding to be resurrected.
This was done by adding form list fcteexceplist the target is now checked and if it fails the checks previously done to see if it resists it will then check if its in this list and will resurrect them without using the standup animation.
Version 10
You will need to remove the old files fcresurrectquestscr.pex, fcteresurrectscr.pex and the psc files with the same name in this version they are in a bsa file. This is version 9 with the previously mentioned change and the removal of the player being moved to a dummy cell and back for those having issues with lost followers.