Jump to content

Ok, I need help


Akrid

Recommended Posts

:( 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

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

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 currentDay

short daysPassed

 

if ( GetJournalIndex XVA_D < 1 )

StopScript vampirevisit

Return

endif

 

if ( GetJournalIndex XVA_D > 1 )

StopScript vampirevisit

Return

endif

 

if ( currentDay != day ) ;the day has changed, so up the count

Set currentDay to Day

Set daysPassed to daysPassed + 1

endif

 

if ( daysPassed > 2 )

if ( GetPCSleep == 1 )

wakeupPC

PlaceAtPC "a shady smuggler" 1 128 1

endif

endif

 

End vampirevisit

Link to comment
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...