Akrid Posted November 29, 2003 Share Posted November 29, 2003 :( I know I decared a main quest vampire mod (setra) by this christmas, but I am all self taught and while very capable, there are some things I never picked up. Timers............. I'm trying to get a NPC to visit the player after so many days of a journal entrie. I know I need to make a script with short currentDay and dayCount But it dosn't seem to work, is there some special trick to doing this? Link to comment Share on other sites More sharing options...
ThetaOrionis01 Posted November 29, 2003 Share Posted November 29, 2003 Have a look at some existing in-game scripts, for instance the ones for Fast Eddie's quests to retrieve a couple of items for you. You might be able to adapt those. Other than that I can only recommend Scripting for Dummies by Ghan-Buri-Ghan - I don't have a link for a site where you can download it, but you should find it easily with a google search. Link to comment Share on other sites More sharing options...
Akrid Posted November 29, 2003 Author Share Posted November 29, 2003 Thanks "fast eddie" was a good resourse, I noticed that script used "short days Passed", is that a short global for that script only? am I supposed to make my own like "short daysbye" or can I use "days Passed" also? I think the timer is not really my problem, it's getting the guy to appear after the time has expired. But I can't really know what the problem is, I could be doing the timer wrong or the PlaceAtPC wrong. Here is the Script I'm trying to use, please don't laugh :help: Begin vampirevisit short currentDayshort daysPassed if ( GetJournalIndex XVA_D < 1 ) StopScript vampirevisit Returnendif if ( GetJournalIndex XVA_D > 1 ) StopScript vampirevisit Returnendif if ( currentDay != day ) ;the day has changed, so up the count Set currentDay to Day Set daysPassed to daysPassed + 1endif if ( daysPassed > 2 ) if ( GetPCSleep == 1 ) wakeupPC PlaceAtPC "a shady smuggler" 1 128 1 endifendif End vampirevisit Link to comment Share on other sites More sharing options...
Marxist ßastard Posted November 29, 2003 Share Posted November 29, 2003 ... if ( GetJournalIndex XVA_D < 1 ) StopScript vampirevisitReturnendif ... ...Eliminate the line in bold, it permanently breaks the script before the quest even starts. Link to comment Share on other sites More sharing options...
Akrid Posted November 29, 2003 Author Share Posted November 29, 2003 Well that was one of the problems, but It stubornly continues to not work. I think Somthing has to make the Script go, like it's not constanly checking for days passed. I even tried attaching the script to "a shady smuggler" (who I'm using as a gunni pig). Why does everything have to be so hard? :( Link to comment Share on other sites More sharing options...
Marxist ßastard Posted November 29, 2003 Share Posted November 29, 2003 Heh... Make it a startscript. The problem with putting it on Mr. Shady is that he doesn't exist until you PlaceatPC him -- at least not in the PC's current cell. Link to comment Share on other sites More sharing options...
Akrid Posted November 29, 2003 Author Share Posted November 29, 2003 Duh! :blush: I should of known that! Well it worked, thanks this will proof to be very useful in mod, nowhere to run now! Vampires coming to get you. Link to comment Share on other sites More sharing options...
Switch Posted November 29, 2003 Share Posted November 29, 2003 Since question is now answered, locked. :P Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.