Script for lights onlights off depending on game hour

Post » Mon Jan 06, 2014 12:24 am

Got me some street lights, lanterns to be exact and what I want to do is during the day I have a lantern that has unlit candles (thanks Tamira for the nif) and at a appropriate hour, maybe 20.00 (8pm) I want to disable the unlit lantern and enable a lantern with lit candles. I've done this before using trigger boxes and activators but am unsure how to script as a non-Event.

Thanks.

User avatar
Queen
 
Posts: 3480
Joined: Fri Dec 29, 2006 1:00 pm

Post » Mon Jan 06, 2014 6:46 am

I am a total scripting noob. I used this script from the wiki to enable/disable the lights in my house mod Sepredia (you may look it up there, it is very simple made):

http://www.creationkit.com/Light_Switch

User avatar
x_JeNnY_x
 
Posts: 3493
Joined: Wed Jul 05, 2006 3:52 pm

Post » Sun Jan 05, 2014 9:06 pm

There is a mod that does this already (several actually), but I use http://www.nexusmods.com/skyrim/mods/26955/ by Necrocytosis

The only thing about it is I wish they would go off at 06:00 and on at 18:00 - it can be dark for quite a while if they go on at 20:00.

But I would REALLY like to see is lights in houses and shops (not taverns, inns and palaces) go off at 22:00 and on again at 06:00 AM. Fires damping down as well.

That would make being a burglar SO much more immersive.

~.~

User avatar
jadie kell
 
Posts: 3497
Joined: Sat Jul 29, 2006 3:54 pm

Post » Sun Jan 05, 2014 8:54 pm

That script is for turning on/off light markers to illuminate, what I want for my streetlight is that the actual object changes, the area is already well lit. So in the day the streetlights are a lantern with candle but no flame, made by yourself, thank you, then at say 20.00 hr the lanterns candle no flame are disabled and in their place lanterns candles with flames are enabled. At say 6.00 hr then enable/disable is reversed. Ideally it would be a script that is on either the candle no flame lantern or the candle with flame lantern, then it is easier to place the lanterns anywhere. The other option would be using an xmarker to control all the lanterns and as there will be many over some distance this will be tedious.

User avatar
jessica sonny
 
Posts: 3531
Joined: Thu Nov 02, 2006 6:27 pm

Post » Sun Jan 05, 2014 5:56 pm

Well, I did something similar in Sepredia. Torch and GlazedCandles lit and unlit. I put a torch (lit and unlit) with a torchlight in that area. I put the script on that torchlight and made it a parent for the GlazedCandles and the torch. So when the torchlight lightens in the evening, the lit models will appear. And when the script tells the torchlight to go off in the morning, my torch and GlazedCandles change to the unlit versions (set enable state opposite to parent).

User avatar
Eve(G)
 
Posts: 3546
Joined: Tue Oct 23, 2007 11:45 am


Return to V - Skyrim