Page 1 of 1

[SOLVED] Display in-game time instead of actual time in save

Posted: Thu Feb 16, 2017 12:26 am
by sapiboonggames
Hello guys,

I'm making a dating sim in which the game has variables that keep track of the date, month, and weekname (Monday, Tuesday, etc).
Previously, I use this code below:

Code: Select all

text FileTime(number, empty=_("???"))
This record the time player save game and display it in save screen.

My question is, how do we display in-game time (the game variables "Date", "Month", "Weekname" when the player save the game) in the save screen?
I tried this code below:

Code: Select all

text "[weekname], [day]/[month]"
But obviously it didn't work. The text in save files keep changing determined on current value of those variables.

In summary, what I want is:
Let's say in-game time is Wednesday, 13 April. When player saves the game, the time displayed is "Wednesday, 13 April."
Even if the day in-game changes to Thursday, 14 April, the time in file slot is still Wednesday, 13 April as long as player didn't overwrite the save file.

Is something like this possible?
Thank you! :)

Re: Display in-game time instead of actual time in save scre

Posted: Thu Feb 16, 2017 12:41 am
by philat
Not exactly what you're looking for, but probably close enough to give you an idea of how to go about it. viewtopic.php?f=8&t=30905

Re: Display in-game time instead of actual time in save scre

Posted: Thu Feb 16, 2017 12:52 am
by sapiboonggames
philat wrote:Not exactly what you're looking for, but probably close enough to give you an idea of how to go about it. viewtopic.php?f=8&t=30905
Thanks! I'll take a look :D

Re: Display in-game time instead of actual time in save scre

Posted: Thu Feb 16, 2017 2:12 am
by sapiboonggames
philat wrote:Not exactly what you're looking for, but probably close enough to give you an idea of how to go about it. viewtopic.php?f=8&t=30905
EDIT: Nevermind. I got it to work after trial and error, the code in the thread you mentioned works!