MV Plugin-Extension- A timer that keeps counting without playing the game.

Basically I need a counter that keeps counting whether or not the player is playing the game.

First of all, I use the following plugin (Created by "Dev_With_Coffe"[https://forums.rpgmakerweb.com/index.php?threads/read-system-time-in-game.138633/post-1202105]), which allows me to get the current date of the player once he starts the game for the first time.
What I want is that, once that date is set, the game starts counting from there on without needing to resort to the PC date again (because players could change the date of their PC and thus advance faster).
The problem is that of course, the counter stops once you close the game, and players would literally have to play for 24 hours without stopping in order to continue advancing in the story, and that's not the idea.
Is there any way to make this possible?
Not really. It's a little bit of a presumption to think anyone would care enough about your game to be manipulating their system time for it - and if they do care that much, let them? Not like what the user does with their game can harm you 😉

You could see if there's a function to retrieve the time from an external source, like the atomic clock, instead of the system time. But if someone wants to both play and cheat at your game, there's really no way for you to make it impossible.

There's some info here:
Thank you for your response!
So is there a way to call APIs through scripts? I didn't know that, it makes things much simpler.
As for why I do it, it's basically because I want to give "a deep message" with my game, about patience and stuff, so I needed to do something like this haha.
As for them using other methods, that's fine, if they had the patience to get into editing game files or researching methods, I guess the message of the game gets across anyway haha.
Not really. It's a little bit of a presumption to think anyone would care enough about your game to be manipulating their system time for it - and if they do care that much, let them? Not like what the user does with their game can harm you 😉
If it's something like Animal Crossing that has events or fish/animal spawns based on real dates and time, players absolutely do it all the time. Nintendo's response is well, nothing, they don't care what the player does or have no power to stop it.
If it's something like Animal Crossing that has events or fish/animal spawns based on real dates and time, players absolutely do it all the time.
I know it is done by players for games, but I strongly suspect the OP's game will not have the popularity of Animal Crossing.
OP, the only real way to stop "cheating" like this is if your game is connected on the backend to a server, which is probably overkill and would require the player to be connected to the internet to launch the game. My suggestion is to create an in-game alterative to "time traveling" so the player can advance faster or access time-gated areas by completing tasks instead of gaming the system by changing their clock. For example, Animal Crossing has special seasonal islands the player can travel to to catch summer fish instead of changing their system clock to a summer month.
You could use the script performance.now() which is a monotonic clock unaffected by the users system time. if you substract the last performance.now() by the one at the start you get the amount of milliseconds passed between those 2 time points

More info can be found here https://developer.mozilla.org/en-US/docs/Web/API/Performance/now
You could use the script performance.now() which is a monotonic clock unaffected by the users system time. if you substract the last performance.now() by the one at the start you get the amount of milliseconds passed between those 2 time points

More info can be found here https://developer.mozilla.org/en-US/docs/Web/API/Performance/now
Maybe I'm misunderstanding something, but I don't see how that addresses the OP.

performance.now() indicates how long the game has been running. It doesn't have a point of reference to the outside time, nor how long it's been since the last time the game was run.

All this can help you with, as far as I'm reading, is very detailed tracking of how long the player has had the game running.
oh I didn't connect the latter part, it needs to continue even when not running, my bad

Original thread: https://forums.rpgmakerweb.com/threads/plugin-extension-a-timer-that-keeps-counting-without-playing-the-game.158308/