imperistan Posted May 31, 2013 Share Posted May 31, 2013 So, for my Mjolnir mod, I'm trying to create a spell that will allow the user to resurrect animals twice a day. (For those interested, in Norse mythology Thor is able to resurrect his two goats every day with his hammer) Now normally when I hit this kind of road block I just find someone elses work, study it, and then recreate it for my own purposes. However, the only working mod I've been able to find that had a true resurrection spell was Midas Magic, and while I imagine it would help, I've come to realize I have no idea what I'm looking at regarding the script for it. Well, sort of. I understand what the different parts mean, and what they seem to be doing, its just that I don't really know what I'd have to do to have this work for my own purposes. There also runs the issue that the way Midas is doing it seems to account for resurrected actors having their items reset by removing the items in the inventory first to a chest in a dummy cell and then returning them after the resurrection, which I don't think would be necessary for my purposes considering the actual point of Mjolnir's resurrection is to restore the meat of the animals. Any help here would be appreciated, as this pretty much the last thing I need before I'm ready to prepare the mod for the next release. Link to comment Share on other sites More sharing options...
imperistan Posted June 1, 2013 Author Share Posted June 1, 2013 Bump Link to comment Share on other sites More sharing options...
imperistan Posted June 2, 2013 Author Share Posted June 2, 2013 bump Link to comment Share on other sites More sharing options...
Elleh Posted June 2, 2013 Share Posted June 2, 2013 .... uhhhhhh...... Well my scripting skills are nearly non-existent, so consider this an elaborate bump. From your first post, it's a little confusing figuring out where you're having an issue. Are you saying "how do I create a resurrect spell that doesn't preserve items?" I.e. Resets inventory? Or "How do I get the Midas Magic spell to work for my purposes"? I haven't looked at the Midas Magic spell, so I can't say for sure, but you'd probably just need to chop out the bit with the chest. This might be a good starting point: http://www.creationkit.com/Resurrect_-_Actor The second example might even be exactly what you need - just remove the ActorTypeNPC keyword. All that would be need then was to create some sort of timer that only allowed the effect to run after a certain amount of time. A while back, I made a post here asking for help with resurrecting a specific actor and adding a timer. http://forums.nexusmods.com/index.php?/topic/939054-teleporting-and-then-resurrecting-npc-scriping-help-needed/page-3 The difference there is that the script is attached to the actor and not a magic effect. It also accounts for the resetting inventory problem, but the bit with the chest and form lists could just be cut out entirely. Your only problem would come from resurrecting humanoid NPCs - they'd be nekkid if they don't have all the parts of their default outfit. This is mentioned by someone else on pages 3 and 4. But if your spell only works on animals, it wouldn't be a problem. Food for thought, I guess? Eheh. ^^; Link to comment Share on other sites More sharing options...
gulogulo Posted June 3, 2013 Share Posted June 3, 2013 Why dont you download my mod Nature of the beast 2 and look at raise dead save spell which is basicaly a ressurection and not reanimate dead spell. Copy it and cut off what is not necessary for you. Link to comment Share on other sites More sharing options...
AnkhAscendant Posted June 3, 2013 Share Posted June 3, 2013 Does causing the spell to delete the old dead one and spawn a new goat not work? If you want to have them around for eating purposes ( :P) I can't imagine it's that important to keep their relationships or anything. Link to comment Share on other sites More sharing options...
Recommended Posts