Need a bit of scripting advise about disable/enable objects

Post » Wed May 11, 2011 10:56 pm

I'm trying to mod the script for the "A Door in Niben Bay" quest, so that the quest doesn't start until after I've done with the oblivion crisis. But then it would be silly if the Island and all still were there when the quest haven't even started yet...<_<

So this is where I need your advice: I need to disable the island and all the objects and references on it until the quest actually starts (for obvious reasons). But when all that is done I have to enable them again when the quest do start.
I know I can just check the initially disabled box on all objects, but that's going to be a lot of work if I'm to get everything covered (not to mention all the scriptwriting afterwards), so is there an easier way of doing this? Also when I actually am to write the scriptblock that's going to enable all of the references and objects again, where do I put it in the SE01DoorScript (the quest script for "A Door in Niben Bay"), and how do I write the contitions so that my modding correctly enables everything again at the time the quest begins?
Of course I have to make sure nothing of it is visible from distance when it shouldn't be either.

I'm a bit of a noob at scripting, but I at least think I pretty much understand the very basic details, but still, it would be nice of you if you could to talk about the script stuff in a manner understandable for a noob.

PS: Just so you don't get it wrong: I have no problems changing that bit of the script that adds the quest to my journal and starts it that way. Btw this is when I actually want the quest to start: When I first get the journal entry at the time I've set it to appear.

PPS: I don't use OBSE, Wrye Bash or any such things.
User avatar
Nany Smith
 
Posts: 3419
Joined: Sat Mar 17, 2007 5:36 pm

Post » Wed May 11, 2011 3:26 pm

I'm trying to mod the script for the "A Door in Niben Bay" quest, so that the quest doesn't start until after I've done with the oblivion crisis. But then it would be silly if the Island and all still were there when the quest haven't even started yet...<_<

So this is where I need your advice: I need to disable the island and all the objects and references on it until the quest actually starts (for obvious reasons). But when all that is done I have to enable them again when the quest do start.
I know I can just check the initially disabled box on all objects, but that's going to be a lot of work if I'm to get everything covered (not to mention all the scriptwriting afterwards), so is there an easier way of doing this? Also when I actually am to write the scriptblock that's going to enable all of the references and objects again, where do I put it in the SE01DoorScript (the quest script for "A Door in Niben Bay"), and how do I write the contitions so that my modding correctly enables everything again at the time the quest begins?
Of course I have to make sure nothing of it is visible from distance when it shouldn't be either.

I'm a bit of a noob at scripting, but I at least think I pretty much understand the very basic details, but still, it would be nice of you if you could to talk about the script stuff in a manner understandable for a noob.

PS: Just so you don't get it wrong: I have no problems changing that bit of the script that adds the quest to my journal and starts it that way. Btw this is when I actually want the quest to start: When I first get the journal entry at the time I've set it to appear.

PPS: I don't use OBSE, Wrye Bash or any such things.


Weeeellll... IIRC the only way to "disable" the things on the island (and the island itself) without OBSE would be to cover it with something, like a huge rock :D:D:D Imagine, how stupid that'd look...
User avatar
Rusty Billiot
 
Posts: 3431
Joined: Sat Sep 22, 2007 10:22 pm

Post » Wed May 11, 2011 2:01 pm

1. You place an Xmarker and give it a reference name. Check its 'initially disabled' check box.

2. You set the 'enable parent' to all the objects on the island to the Xmarker above that you dont want visible until the right time.

3. When you want the stuff to appear, you simple enable the Xmarker and everything else will enable with it.
User avatar
JERMAINE VIDAURRI
 
Posts: 3382
Joined: Tue Dec 04, 2007 9:06 am

Post » Wed May 11, 2011 7:45 am

1. You place an Xmarker and give it a reference name. Check its 'initially disabled' check box.

2. You set the 'enable parent' to all the objects on the island to the Xmarker above that you dont want visible until the right time.

3. When you want the stuff to appear, you simple enable the Xmarker and everything else will enable with it.


Ok, I'll try that and see if it works
User avatar
Celestine Stardust
 
Posts: 3390
Joined: Fri Dec 01, 2006 11:22 pm

Post » Wed May 11, 2011 10:40 am

1. You place an Xmarker and give it a reference name. Check its 'initially disabled' check box.

2. You set the 'enable parent' to all the objects on the island to the Xmarker above that you dont want visible until the right time.

3. When you want the stuff to appear, you simple enable the Xmarker and everything else will enable with it.


Your suggestion works, but I'm having trouble with the "Visible When Distant" stuff, basiclly the island shows up at distance and reflects in the water when nothing is there. If I was to uncheck the "visible when distant" box, is there any way I would be able to toggle it back on using a script or something?
User avatar
BlackaneseB
 
Posts: 3431
Joined: Sat Sep 23, 2006 1:21 am

Post » Wed May 11, 2011 11:54 am

Your suggestion works, but I'm having trouble with the "Visible When Distant" stuff, basiclly the island shows up at distance and reflects in the water when nothing is there. If I was to uncheck the "visible when distant" box, is there any way I would be able to toggle it back on using a script or something?

I am not sure, but OBSE might have an option for that, or a workaround... IDK, really :-/
User avatar
Ross
 
Posts: 3384
Joined: Thu Aug 10, 2006 7:22 pm

Post » Wed May 11, 2011 8:48 am

That is LOD related.

There is nothing that I know of that will take care of the reflection in the water.
User avatar
Etta Hargrave
 
Posts: 3452
Joined: Fri Sep 01, 2006 1:27 am

Post » Wed May 11, 2011 11:45 pm

That is LOD related.

There is nothing that I know of that will take care of the reflection in the water.


Ok, so it must either permanently visible from distance, regardless of wether there is anything there or not, or permanently invisible, wether there is anything there or not?

Is that right?
User avatar
SiLa
 
Posts: 3447
Joined: Tue Jun 13, 2006 7:52 am


Return to IV - Oblivion