Aller au contenu

Photo

Skipping time


  • Veuillez vous connecter pour répondre
5 réponses à ce sujet

#1
Parteloc

Parteloc
  • Members
  • 4 messages

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.



#2
Fester Pot

Fester Pot
  • Members
  • 1 394 messages


    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!


  • henesua aime ceci

#3
Proleric

Proleric
  • Members
  • 2 360 messages
+1

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

#4
Parteloc

Parteloc
  • Members
  • 4 messages

Thank you Fester Pot! 

 

Such a simple thing :) 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 :)



#5
WhiZard

WhiZard
  • Members
  • 1 204 messages

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



#6
WhiZard

WhiZard
  • Members
  • 1 204 messages

+1

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

 

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