I'm trying to make a game with real time set up where it pulls the clock from the computer time kinda like how Animal Crossing or tamagotchi's. How can I call on the clock and Calendar on my PC into my game? Like how many days have I been inactive and stuff happens while the game is shut down. For example, It has farming in it. Once a day the seed grows and is ready to harvest in say 12 hours later, so say I plant at 6 PM and go to bed then open up my game at 6 AM and I can harvest as late as 18 hours kind of a deal. Are there any plugins that can call on that and compare time of closing game to time of running the game and put the numbers in accordingly? Mostly I'd have at the most accurate is minutes for display purposes, but all the events will most likely run based on hours and/or days. I'm not good with JavaScript so I'm not sure how to go about it.
Time passage when game is shut down
RPG Maker MV SupportHi, you'll find lots of information in this post:
forums.rpgmakerweb.com
Basically, you'll be able to store dates and times in variables, and differentiate between the variable date vegetable 1 registered and the current date. (one variable for the day, one for the hour, one for the minutes, etc.).
a little off-topic advice that will help you if your project is animal crossing like :
If you want to grow a lot of things, I recommend a plugin that will allow you to register “self.variables” (basically, if you have 10event vegetables, they'll each have their own “growth” variable instead of having a global variable for vegetable 1 growth, vegetable 2 growth, etc.).
here's an example:
forums.rpgmakerweb.com
here's another :
www.yanfly.moe
MV - Read system time in-game
Hiya. Yep, another post. All I want to do is give my game the ability to read the computer's time. I know there's already an existing plugin for that, but it costs money, and I don't have the money to purchase it. I'm just some random teenager that makes YouTube content for no reason, and chats...
forums.rpgmakerweb.com
Basically, you'll be able to store dates and times in variables, and differentiate between the variable date vegetable 1 registered and the current date. (one variable for the day, one for the hour, one for the minutes, etc.).
a little off-topic advice that will help you if your project is animal crossing like :
If you want to grow a lot of things, I recommend a plugin that will allow you to register “self.variables” (basically, if you have 10event vegetables, they'll each have their own “growth” variable instead of having a global variable for vegetable 1 growth, vegetable 2 growth, etc.).
here's an example:
Self Variables
This plugin introduces the concept of "Self Variables" for your events. Similar to Self Switches, each event can hold its own set of self-variables, which you can use to keep track of things like how many times you've interacted with the event, or the last position of the player that this event...
forums.rpgmakerweb.com
Self Switches & Variables (YEP) - Yanfly.moe Wiki
Thanks, I struggle finding things that have already been made in the forums (mainly because I am never sure how to word my searches) so this should help.
When Googling things, less is often more. Only include words that are completely pertinent to what you want to find.
So if I Google "rpg maker mv real time" the fourth result is exactly what you're talking about (the thread linked above).
If I then take the technical wording from that and Google "rpg maker mv system time" there are two more results that come right up and are immediately applicable:
Clock time system like animal crossing in rpg maker mv
Hi is it possible to make a time (clock system) that follows real world time? so when the player played at night, the game just turned into nighttime, is this can be done by plugin or someone might wanna help me
forums.rpgmakerweb.com
MV - Read system time in-game
Hiya. Yep, another post. All I want to do is give my game the ability to read the computer's time. I know there's already an existing plugin for that, but it costs money, and I don't have the money to purchase it. I'm just some random teenager that makes YouTube content for no reason, and chats...
forums.rpgmakerweb.com
Original thread: https://forums.rpgmakerweb.com/threads/time-passage-when-game-is-shut-down.171883/