assterixxx Posted September 6, 2012 Share Posted September 6, 2012 I'm working on building a playerhouse. I have a secret passage way that leads a bit away from my main house.I would like to make it so that when I walk trough the door, time advances by... 2 hrs or so. Is there any simple way to make a door do that? Link to comment Share on other sites More sharing options...
assterixxx Posted September 10, 2012 Author Share Posted September 10, 2012 I have been playing with this all day. Is it possible to add a number to a GlobalValue? Something like this? TimeOfDayGlobalProperty.SetValue(TimeOfDayGlobalProperty + X) Link to comment Share on other sites More sharing options...
IsharaMeradin Posted September 10, 2012 Share Posted September 10, 2012 You could try applying a script to the door or a trigger or something that triggers a 2 hour wait or however long you want to wait.... Without trial and error I wouldn't be sure how to implement that tho... http://www.creationkit.com/WaitGameTime_-_Utility beyond that I didn't see anything specific to adjusting the game time. doesn't mean that someone who really knows scripting couldn't find some way around it... Link to comment Share on other sites More sharing options...
JanusForbeare Posted September 10, 2012 Share Posted September 10, 2012 You probably want setpcsleephours. It causes time to pass as if the player was sleeping, but without the "wait" window that usually pops up. Not sure if it will work while the player is changing cells, though... you'll probably have to script the function to fire slightly before or slightly after the load screen. Link to comment Share on other sites More sharing options...
assterixxx Posted September 10, 2012 Author Share Posted September 10, 2012 Two good suggestions. But from my LIMITED understanding of papyrus, the wait timer just "stops" the script for a while before continuing with the rest of the script. The setpcsleephours is a console command, but you are right, that is exactly what I'm looking for - if only it worked in papyrus... Link to comment Share on other sites More sharing options...
JanusForbeare Posted September 10, 2012 Share Posted September 10, 2012 Huh, so it is. Sorry about that. I really wish the CK wiki made the distinction a bit more obvious, it's not the first time I've made that mistake. :wallbash: The only other possibility I can see is the sleep procedure. However, the wiki is unclear about its effects when used on the player - it may or may not be what you need. It is surprising that there's no "setgametime" function, or something similar. Link to comment Share on other sites More sharing options...
assterixxx Posted September 10, 2012 Author Share Posted September 10, 2012 I can get the door to set to a specific time by usingTimeOfDayGlobalProperty.SetValue(5) - 5 being 5AM. GlobalVariable Property TimeOfDayGlobalProperty Auto And set that property to GameHours.But I can't figure out how to add a couple of hours to the game. Isn't it possible to do that? Link to comment Share on other sites More sharing options...
JanusForbeare Posted September 10, 2012 Share Posted September 10, 2012 (edited) Time is a global value? Then I would think you could use something like "modvalue(2)" to achieve your goal. EDIT: Aha! The function you're looking for is "mod", not "setvalue" or "modvalue". Edited September 10, 2012 by JanusForbeare Link to comment Share on other sites More sharing options...
assterixxx Posted September 10, 2012 Author Share Posted September 10, 2012 (edited) HAHA! Thank you for sparing with me and pointing in the right direction! I got it working by doing thisfloat NewTime = TimeOfDayGlobalProperty.Mod(10) TimeOfDayGlobalProperty.SetValue(NewTime) Still a couple of things to figure out tho... the (10) only adds 6 hrs or so. But I will tweak it to fit my plans! Thanks again Edit: Kudos to you! (sounds like an STD) Edited September 10, 2012 by assterixxx Link to comment Share on other sites More sharing options...
JanusForbeare Posted September 10, 2012 Share Posted September 10, 2012 Oh nose! I caught kudos! :sick: My pleasure, I'm glad you got it working. It seemed like such a simple request, which made it all the more annoying when there didn't seem to be a solution. I'm happy that that wasn't the case. Link to comment Share on other sites More sharing options...
Recommended Posts