Author Topic: Skipping time  (Read 317 times)

Legacy_Parteloc

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Skipping time
« on: November 27, 2014, 12:09:22 pm »


               

So... is it possible?


 


I am familiar with the concept of creating a script to check if enough time has passed since the last rest before allowing the player to rest again. But what I'm looking for is a script to actually fast forward the game time. For example a cutscene during which a week will pass or passing 8 hours when sleeping in bed. So that the dates in the journal and what you see when holding the mouse over the compass would actually change. 


 


I'm guessing it's not possible, but I thought I'd ask anyway. Maybe some trick to change the module's Minutes/Hours value midgame?


 


Thanks in advance for any information.



               
               

               
            

Legacy_Fester Pot

  • Hero Member
  • *****
  • Posts: 1698
  • Karma: +0/-0
Skipping time
« Reply #1 on: November 27, 2014, 01:57:54 pm »


               


    int nHourTime = GetTimeHour();

    int nMinuteTime = GetTimeMinute();

    int nSecondTime = GetTimeSecond();

    int nMilliTime = GetTimeMillisecond();


 


SetTime(nHourTime+#,nMinuteTime,nSecondTime,nMilliTime);


 


Quite basic. Change the # sign to how many hours you'd like to pass.


 


Example:


 



SetTime(nHourTime+8,nMinuteTime,nSecondTime,nMilliTime);



 


FP!



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Skipping time
« Reply #2 on: November 27, 2014, 10:08:27 pm »


               +1


...but only do this in Single Player modules...
               
               

               
            

Legacy_Parteloc

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Skipping time
« Reply #3 on: December 07, 2014, 07:46:05 pm »


               

Thank you Fester Pot! 


 


Such a simple thing '<img'> But I didn't figure it out, so I guess I still have a lot to learn.


 


This is the second time I've asked a question in this forum and the second time I get precisely the solution I'm looking for. This place is sweet '<img'>



               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
Skipping time
« Reply #4 on: December 07, 2014, 10:32:10 pm »


               

Make sure that you are not changing time while the game is paused.



               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
Skipping time
« Reply #5 on: December 08, 2014, 08:52:56 am »


               


+1


...but only do this in Single Player modules...




 


Actually, advancing time can be used as an alternative to the Time Stop effect.