continue quest by sleeping.

Post » Tue Nov 20, 2012 4:04 am

how do you start and or continue a quest by sleeping? (not just in one bed but with all bed's like the dark brotherhood quest)
User avatar
Claudia Cook
 
Posts: 3450
Joined: Mon Oct 30, 2006 10:22 am

Post » Tue Nov 20, 2012 3:28 pm

Use http://www.creationkit.com/RegisterForSleep_-_Form and then OnSleepStart/Stop you can advance your quest.
User avatar
Guy Pearce
 
Posts: 3499
Joined: Sun May 20, 2007 3:08 pm

Post » Tue Nov 20, 2012 12:24 am

Use http://www.creationkit.com/RegisterForSleep_-_Form and then OnSleepStart/Stop you can advance your quest.

where do i put it? (p.s thanks for this)
User avatar
Ella Loapaga
 
Posts: 3376
Joined: Fri Mar 09, 2007 2:45 pm

Post » Tue Nov 20, 2012 2:45 pm

It's similar to RegisterForUpdate--you can attach it to many different types of object. You could have it in a quest script, a script attached to a reference alias, a script attached to an object, etc. It depends on what exactly you're trying to do and how you've arranged your quest. From what you wrote, maybe put the OnSleepStop event in a quest script, and then use kmyQuest.RegisterForSleep() in a quest stage fragment. But that's just one possibility.

Just remember that like RegisterForUpdate, you should UnregisterForSleep when you're done, or when you detect that your mod is uninstalled.
User avatar
Lauren Graves
 
Posts: 3343
Joined: Fri Aug 04, 2006 6:03 pm

Post » Tue Nov 20, 2012 2:33 pm

It's similar to RegisterForUpdate--you can attach it to many different types of object. You could have it in a quest script, a script attached to a reference alias, a script attached to an object, etc. It depends on what exactly you're trying to do and how you've arranged your quest. From what you wrote, maybe put the OnSleepStop event in a quest script, and then use kmyQuest.RegisterForSleep() in a quest stage fragment. But that's just one possibility.

Just remember that like RegisterForUpdate, you should UnregisterForSleep when you're done, or when you detect that your mod is uninstalled.
.....huh (i'm kinda green :P)
User avatar
Valerie Marie
 
Posts: 3451
Joined: Wed Aug 15, 2007 10:29 am


Return to V - Skyrim