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
Clock time system like animal crossing in rpg maker mv
RPG Maker MV SupportYeah it can be done, and you are correct that it can be done via plugin.
So if you ever wonder about if something can be done in the maker that isn't their by default, then google whatever you want followed by plugin, and 9/10 you'll be directed to a plugin for it.
Hope you find the one your looking for ^^
So if you ever wonder about if something can be done in the maker that isn't their by default, then google whatever you want followed by plugin, and 9/10 you'll be directed to a plugin for it.
Hope you find the one your looking for ^^
It can be done pretty easely I think.
No need for plugins either (though you can automate it with a plugin)
Just create a common event that runs in parrallel
In that event, you want to create a script with :
Change 1, 2, 3 into the variable ID in which you store the time.
You now have the local time stored in variables and can setup your logic for morning, afternoon, night, etc...
For example, in the parrallel event you can add, after the script :
You can add more in depth logic and change text by an event call that will alter your game filter for example, all up to you.
No need for plugins either (though you can automate it with a plugin)
Just create a common event that runs in parrallel
In that event, you want to create a script with :
JavaScript:
let now = new Date();
let hours = now.getHours(); // Returns the hour (0-23)
let minutes = now.getMinutes(); // Returns the minutes (0-59)
let seconds = now.getSeconds(); // Returns the seconds (0-59)
$gameVariables.setValue(1, hours);
$gameVariables.setValue(2, minutes);
$gameVariables.setValue(3, seconds);
Change 1, 2, 3 into the variable ID in which you store the time.
You now have the local time stored in variables and can setup your logic for morning, afternoon, night, etc...
For example, in the parrallel event you can add, after the script :
Code:
♦ If : Hours >= 6
♦ If : Hours < 12
♦ Text : Good morning! (6 AM to 12 PM)
♦ End
♦ If : Hours >= 12
♦ If : Hours < 18
♦ Text : Good afternoon! (12 PM to 6 PM)
♦ End
♦ If : Hours >= 18
♦ Text : Good evening! (6 PM to 12 AM)
♦ End
♦ End
♦ Else
♦ Text : Good night! (12 AM to 6 AM)
♦ End
You can add more in depth logic and change text by an event call that will alter your game filter for example, all up to you.
Here are two plugins with ready-made functions, maybe it will help:
forums.rpgmakerweb.com
forums.rpgmakerweb.com
Accurate Playtime
RPG Maker MV is designed to run generally at 60 fps. As such, it keeps track of the total amount of play time a player has been playing by monitoring the total number of frames that have been run. This is all fine and dandy if the game is always running at 60 fps. If, however, the player is on a...
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
got a question, does to clock will be displayed on the screen with this?
thanks for answering
thanks for the reply!
No, the solution I offered will only allow you to save local time in variables.
If you want a clock to show the time on screen you will need to represent it with an image or window base (custom overlay/menu).
You could also use a plugin such as YEP_MessageCore to draw text on screen and show the current time displaying hours, minutes and seconds (according to what you want)
There are multiple solutions to show current time on screen, but I'm not aware of a "ready to use" plugin for this.
ok! thanks for the help
Original thread: https://forums.rpgmakerweb.com/threads/clock-time-system-like-animal-crossing-in-rpg-maker-mv.170581/