Lock exterior doors in interior until cell change script

Post » Wed Sep 14, 2016 7:49 am

There really isn't a shorter way of saying this so sorry for the title being the way it is. I am basically looking for a script, that involves a spell that only works in interior, locks all doors, and then disables a reference until either A 24 ingame hours pass, or B the player moves to a separate cell. What is the reason for this anyways? It's related to my mod SkyrulianField, a final touch I wish to add to it, to truly create that zombie/survival playstyle I wanted. And besides I'd feel immersive and wonderfully creepy to repeatedly encounter an army of undead stalkers whom you must ward off with torches part of the time, and you can also avoid them via locking doors while in interiors as well.



Is it even possible to have all these conditions in a single script though? Is it even possible to only lock the doors connecting interiors to exteriors? Is a spell that only works inside possible? If I can't ONLY lock all load doors, then is there a next-best-thing condition to lock all doors, but not say, containers? Can the spell be made where casting it locks multiple doors at once and not just one at a time?



Apologies for the long winded and kind of vague title, though the conditions of this script idea are kinda complicated, and thus hard to explain in a very short sentence.



One last thing, here is a slightly similar but different script, that is much different from what I am currently suggesting.



Scriptname AAATorchBanishZombersScript extends activemagiceffect

ObjectReference Property KMarker Auto
Weapon Property AAABanishmentTorch Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)

KMarker.Disable()
utility.wait(180.0)
KMarker.Enable()
EndEvent


It's on a Fire and Forgot, On Contact for the Banishment Torches. I do intend to keep the torch feature to this mod of mine, I just want to add a door-locking feature as well. I do believe the KMarker.Disable() utility.wait(180.0) KMarker.Enable() function will be easily recyled into this script, or something similar.





User avatar
Umpyre Records
 
Posts: 3436
Joined: Tue Nov 13, 2007 4:19 pm

Return to V - Skyrim