[REQ] Passing time script

Post » Tue Sep 16, 2014 12:49 am

A few years ago I wrote a mod for Morrowind that randomly added 1, 2, or 3 hours to the game hour whenever you read a book and I was wondering if it was possible to do something similar in Skyrim without having to attach a script to every book. If it's not possible, could somebody give me a sample script I could attach to books to achieve the same effect? Thanks.

User avatar
Riky Carrasco
 
Posts: 3429
Joined: Tue Nov 06, 2007 12:17 am

Post » Tue Sep 16, 2014 7:01 am

Time is set by a global variable (hours) called GameHour.

So by using GameHour.Mod(1.0) you would move time forward by 1 hour.
User avatar
Curveballs On Phoenix
 
Posts: 3365
Joined: Sun Jul 01, 2007 4:43 am

Post » Tue Sep 16, 2014 4:17 am

Would that have to be attached to a book or is there a way to determine if a player is reading a book via a global script? Basically, I had to attach the script to every book in Morrowind and I was wondering if I could avoid that with Skyrim. Thanks. :)

User avatar
Kit Marsden
 
Posts: 3467
Joined: Thu Jul 19, 2007 2:19 pm


Return to V - Skyrim