Help - Search - Members - Calendar
Full Version: Script Help
The Nexus Forums > Specific Games > Oblivion > Oblivion Modifications > General Mod Talk
lordneverar
I need to know a script that I could use to make a static world object disappear at night and reappear during the day. Could someone help?
Vagrant0
QUOTE(lordneverar @ Jun 10 2008, 03:00 AM) *
I need to know a script that I could use to make a static world object disappear at night and reappear during the day. Could someone help?

Depends on the object and the situation. Are we talking about something like a building, or something like street lights? Are you only planning to do this with one object, or several? Is it quest related, or can you place something like a small activator nearby to run the scripting?
lordneverar
QUOTE(Vagrant0 @ Jun 10 2008, 03:31 AM) *
QUOTE(lordneverar @ Jun 10 2008, 03:00 AM) *
I need to know a script that I could use to make a static world object disappear at night and reappear during the day. Could someone help?

Depends on the object and the situation. Are we talking about something like a building, or something like street lights? Are you only planning to do this with one object, or several? Is it quest related, or can you place something like a small activator nearby to run the scripting?


Well Ive always noticed in Oblivion that no light ever streamed through the trees so i was going to take the sun stream thing (i forget the editor id) and attach a script so that it only was there during the day and disappeared or faded away as the sun went down. Also I thought it would b better if when it was cloudy that they wouldnt b there as well. I know how I could do it with conditions I think. But I dont know how to make it into a script. could you help?
Vagrant0
QUOTE(lordneverar @ Jun 10 2008, 03:37 AM) *
Well Ive always noticed in Oblivion that no light ever streamed through the trees so i was going to take the sun stream thing (i forget the editor id) and attach a script so that it only was there during the day and disappeared or faded away as the sun went down. Also I thought it would b better if when it was cloudy that they wouldnt b there as well. I know how I could do it with conditions I think. But I dont know how to make it into a script. could you help?

Since these are alot of replicated things, your best bet is to make a new activator which is linked to the same .nif. Then attach a script to that activator. The actual script would probably be the reverse of the streetlight script, you can adjust the basic script and add a condition based on "iscloudy" to disable it. I don't happen to have the CS open to copy and paste the script here. But believe all you need to do is create a script with the same exact stuff, just switch disable with enable, and vise versa.
lordneverar
QUOTE(Vagrant0 @ Jun 10 2008, 03:59 AM) *
QUOTE(lordneverar @ Jun 10 2008, 03:37 AM) *
Well Ive always noticed in Oblivion that no light ever streamed through the trees so i was going to take the sun stream thing (i forget the editor id) and attach a script so that it only was there during the day and disappeared or faded away as the sun went down. Also I thought it would b better if when it was cloudy that they wouldnt b there as well. I know how I could do it with conditions I think. But I dont know how to make it into a script. could you help?

Since these are alot of replicated things, your best bet is to make a new activator which is linked to the same .nif. Then attach a script to that activator. The actual script would probably be the reverse of the streetlight script, you can adjust the basic script and add a condition based on "iscloudy" to disable it. I don't happen to have the CS open to copy and paste the script here. But believe all you need to do is create a script with the same exact stuff, just switch disable with enable, and vise versa.

ok lol ill try to follow those instructions even though i know almost nothing about scripting..
GBHis
Check the scripts for enabling and disabling glowing windows at night in the cities - it ships with Oblivion.esm
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.