QQuix Posted November 9, 2008 Share Posted November 9, 2008 First things first: the first step, now, is to figure out whether the quest script is running or not: First, make sure the “Start Game Enabled” is checked in the Quest Data tab To make sure the quest is running, add the following line just after the Begin gamemode line:Message “Quest is running” If the script is running, the message will flash on the top left of the screen when you start the game. Link to comment Share on other sites More sharing options...
Khet Posted November 9, 2008 Author Share Posted November 9, 2008 A heck I think that's what my problem has been. I don't think I checked Start game enabled. I'll go fix that, try the message thing and test the rest. Edit: Well, Start Game Enabled wasn't checked so I turned that on, then added the message just under Begin GameMode, which appeared. Next I used Setstage EITownCon 10 to start the part of the quest, waiting five days (Two more than my script calls for just to be safe) and anothing happened. I then typed in SetStage EITownCon 20 to make sure, waiting another five days and still nothing. So, all in all the script is infact running, I'm going to try moving the message around to see if I can pinpoint where it stops running on me, if it all. Edit2: Now here's an odd development. This is my 'modified' script with three different messages in it, Below will be my test results: (again, I left out all my Short commands which are still there) Begin GameMode message "Quest is running properly." If DoOnce1 == 0 && GetStage EITownCon == 10 If CurrentDay == 0 Set CurrentDay to GameDay Message "Set CurrentDay to GameDay line" Elseif CurrentDay != GameDay Set DayCount1 to DayCount1 + 1 Set CurrentDay to GameDay If DayCount1 == 3 Message "If DayCount1 == 3" EHouseRef01.Enable Set DoOnce1 to 1 endif endif endif endif End Here's what happened: When I started the game, the Quest is Running properly message popped up every time Oblivion cycled through scripts (five seconds), however, when I type "SetStage EITownCon 10" in the console the "Set CurrentDay to GameDay line" appeared right after Quest is running. All well and good, just like it should since it didn't appear until AFTER I was at stage 10. HOWEVER, when I WAITED for 24 hours the message NO LONGER appeared on my screen, only Quest is Running properly. Apparently, whenever I wait, the script is terminating itself which of course it shouldn't be doing. Then, out of curiosity I went back into the CS and added a random bed nearby. I don't know how differently they handle sleep/wait in the game, but I got the same results. Sleeping OR waiting will terminate the script and prevent it from running properly beyond the "If DoOnce" line. But before waiting it runs fine. Just so you know, I DID wait a while before waiting, to let the script cycle through multiple times before I decided to try waiting, because I thought I might of had my DoOnce set up wrong, but that's not the case, since the message only stopped appearing AFTER I waited. (I let it cycle about 5 times, so I didn't wait until about 50 seconds AFTER I used the SetStage command) Link to comment Share on other sites More sharing options...
QQuix Posted November 9, 2008 Share Posted November 9, 2008 I copy-pasted the code to a quest and it works fine I added a “Message " DayCount1= %g" DayCount1” after the first if, to see the day count going up After waiting three 24-hour periods, my object was enabled. Waiting or sleeping does not make any difference. Did the “Quest is running properly" message stopped showing at all? Link to comment Share on other sites More sharing options...
Khet Posted November 9, 2008 Author Share Posted November 9, 2008 Yeah, it continued to show up but not the second code. And you copy-pasted my example EXACTLY and it worked for you? Did you try it on like a rock or something as big as a house? The one I'm using is LeyawinnLowerhouse01 or whatever it is. Maybe size matters but for me... it's not working. Edit: WOOT! It works now. I tracked down the problem. For some reason in the script I was trying to run, instead of having Elseif CurrentDay != GameDay Set DayCount1 to DayCount1 + 1 I had Elseif if CurrentDay != GameDay Set DayCount1 to DayCount1 + 1 I fixed that and it worked. Thanks for all your help Qquix, I don't know if this would have been possible without you, and sorry for my human error there, I don't know why I never caught it before. Now I can finally get my mod back on track and finish things up! Thanks again mate, kudos to you! Link to comment Share on other sites More sharing options...
Khet Posted November 9, 2008 Author Share Posted November 9, 2008 Edit: Bah, horrible internet. Double Post. Link to comment Share on other sites More sharing options...
QQuix Posted November 9, 2008 Share Posted November 9, 2008 Glad to hear it works now. Have fun developing you mod and let us know when you finish it.And thanks for the kudos. Very nice of you. Link to comment Share on other sites More sharing options...
Khet Posted November 9, 2008 Author Share Posted November 9, 2008 Will do! And hey, I give credit where credit is due. But, it might be a while until the initial beta release since there's still a LOT more scripting I have to figure out and learn for what I have planned, but this was probably the hardest part and things should move much quicker from here on out. Right now I'm in the process of setting up my planned quest stages for construction of the town, after that I'm gonna do the smaller things like figure out how to give a quest update when the player gets near a certain area (in this case a grove of trees). Then i STILL have to do all the interiors for each building, plus get the player's manor set up, figure out where the guilds are going to go, and then figure out how I'm going to handle the guild-master choosing. There's a lot of work ahead of me, but now that I've gotten past this hurdle things are starting to look much, much brighter. Thanks once more for your help, you've really taken a load off my shoulders with helping me to get that script to work. Now it's just a matter of copy/paste and changing a few variables! P.S. I love that quote in your signature. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.