Jump to content

Advance time when opening door


assterixxx

Recommended Posts

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

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

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

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

I can get the door to set to a specific time by using

TimeOfDayGlobalProperty.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

HAHA! Thank you for sparing with me and pointing in the right direction!

 

I got it working by doing this

float 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 by assterixxx
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...