Summerknight666 Posted June 9, 2010 Share Posted June 9, 2010 Well, I'm making my own mod(in the process of, at least). I want my main quest to begin by sleeping, but I do not know how to make this possible. Basically, after the player wakes up, the quest is activated and a log pops up. So, if you can help, please do so! Link to comment Share on other sites More sharing options...
AlienSlof Posted June 9, 2010 Share Posted June 9, 2010 Don't cross-post. One topic is enough - more just confuses people and it won't get you help any quicker. AS Link to comment Share on other sites More sharing options...
Pronam Posted June 9, 2010 Share Posted June 9, 2010 scn YourQuestscript short questtrigger float fQuestDelayTime Begin MenuMode 1012 if GetStage QuestID < 10 if IsPCSleeping == 1 if questtrigger == 1 set questtrigger to 2 Endif Endif Endif End Begin GameMode if GetStage QuestID < 10 if questtrigger == 0 set fQuestDelayTime to 0.5 set questrigger to 1 elseif questtrigger == 2 setstage QuestID 10 set fQuestDelayTime to 5 set questrigger to 2 endif endif End Put this inside a questscript and assign it to your quest. Change the QuestID to the one of your own. As it's common to start at 10, I put in 10 as the first stage. A simple explanation. It'll check if the player is sleeping, set a variable and change the stage when you wake up. It can also be done before that, but then it'll trigger the journal update while you're asleep..which is less surprising.The questdelaytime is there as quests are only checked every 5 seconds and you have to be lucky it's checked when the player takes a short amount of sleep. If it's still not updating within an hour sleep, change the 0.5 to 0.1. Link to comment Share on other sites More sharing options...
Skevitj Posted June 9, 2010 Share Posted June 9, 2010 begin menumode 1012 if hasslept == 1 return endif .... set hasslept to 1end That will set hasslept to 1 after the player has slept and run whatever replaces ...Oblivion counts wait and sleep menus as the same thing, so it will trigger on a wait too. I can't remember if it's possible to differentiate the two. The rest depends on what you want to do with it Link to comment Share on other sites More sharing options...
Recommended Posts