How to detect when a quest starts?

Post » Fri Jul 05, 2013 8:43 pm

I need to figure out exactly when a particular vanilla quest (DB05, if you want to know) starts, and then start my own quest on that.

Intially I thought of using the the story manager, but there isn't any QuestStart event nodes, so now I'm stumped. And I don't want to resort to polling every few seconds in the end.

Help?

User avatar
Stace
 
Posts: 3455
Joined: Sun Jun 18, 2006 2:52 pm

Post » Fri Jul 05, 2013 12:03 pm

Try http://www.creationkit.com/OnStoryScript_-_Quest.

Edit: I guess you need to send something to it first. :X My bad.

User avatar
Chenae Butler
 
Posts: 3485
Joined: Sat Feb 17, 2007 3:54 pm

Post » Fri Jul 05, 2013 11:21 am

Would that even work? DB05 isn't started by the story manager, so I don't think this will apply.

User avatar
Zach Hunter
 
Posts: 3444
Joined: Wed Aug 08, 2007 3:26 pm

Post » Fri Jul 05, 2013 11:36 pm

One way is a quest that's start game enabled with a script similar to this:

Event OnInit()         RegisterForSingleUpdateGameTime(10)EndEventEvent OnUpdateGameTime()    if (DB05.IsRunning())           ;do stuff                   else            RegisterForSingleUpdateGameTime(10)            Return        endifEndEvent
User avatar
Rhiannon Jones
 
Posts: 3423
Joined: Thu Sep 21, 2006 3:18 pm

Post » Fri Jul 05, 2013 5:02 pm

But that wouldn't be very precise, wouldn't it?

sigh...I suppose it'll have to do, with a shorter update interval I guess.

User avatar
le GraiN
 
Posts: 3436
Joined: Thu Mar 22, 2007 6:48 pm

Post » Fri Jul 05, 2013 11:56 am

You can play with the time settings and get it as low as .01 I believe. How precise do you need?

User avatar
Amie Mccubbing
 
Posts: 3497
Joined: Thu Aug 31, 2006 11:33 pm


Return to V - Skyrim