Help with quest delay timer

Post » Sat Mar 26, 2011 7:14 pm

Hi All..

..wondering if anyone can help me with a little quest scripting.

I want to learn how to delay a quest stage update for a number of game days…a prime example of this would be waiting 14 days for your Dragon Armour to be ready at the end of the main quest.

I’ve tried using the technique I learned here - http://www.gamesas.com/index.php?/topic/1099206-script-to-count-number-of-ncps-killed/page__p__16066103__fromsearch__1&#entry16066103 and combined it with the scripts from the Dragon Armour quest…as you may have guessed…I was without success!!

I’m looking to start simple, setting maybe a 3 day delay between stage 10 updating to stage 20..

Are there any tutorials around? I haven’t found one that’s particularly helped.. does anyone have a script they already use?

Cheers..Raharn
User avatar
Paula Ramos
 
Posts: 3384
Joined: Sun Jul 16, 2006 5:43 am

Post » Sat Mar 26, 2011 6:21 pm

Use the GameDaysPassed global variable. Ex:
short timerEndif (time to make cookies)  MessageBox "In 10 days your cookies will be ready."  set timerEnd to GameDaysPassed + 10elseif timerEnd && GameDaysPassed >= timerEnd  set timerEnd to 0  MessageBox "Your cookies are ready and they are delicious."endif

User avatar
D LOpez
 
Posts: 3434
Joined: Sat Aug 25, 2007 12:30 pm

Post » Sat Mar 26, 2011 6:57 pm

Use the GameDaysPassed global variable. Ex:
short timerEndif (time to make cookies)  MessageBox "In 10 days your cookies will be ready."  set timerEnd to GameDaysPassed + 10elseif timerEnd && GameDaysPassed >= timerEnd  set timerEnd to 0  MessageBox "Your cookies are ready and they are delicious."endif



Thanks for this…

I’m just trying to work out how to adapt it (admittedly im in work and haven’t had a chance to mess about on the CS with it). If I was to use GameDaysPassed global variable to enable a parent.. for example a buying house mod would this adaptation of your script work?

short timerEndif (GetState HouseQuest == 10)  MessageBox "In 10 days your furniture will be ready."  set timerEnd to GameDaysPassed + 10elseif timerEnd && GameDaysPassed >= timerEnd  set timerEnd to 0  MessageBox "Your furniture has arrived."  SetStage HouseQuest 20endif


The PC could buy furniture from a vendor which sets the Stage to 10 and the PC is advised your furniture will arrive in 10 days.

At this point the timer starts for 10 days

After 10 days the quest updates to Stage 20 and the parent that controls the furniture in the house cell is enabled.
User avatar
JAY
 
Posts: 3433
Joined: Fri Sep 14, 2007 6:17 am


Return to IV - Oblivion