MZ Do you know how to implement real-time in a custom menu?

Hello, nice to meet you.
Please forgive any ambiguity due to the use of translations.
Do you know of a plugin that displays the current time of the PC on a custom menu screen?
It uses RPG MAKER MZ.


I am using a plugin called SceneCustomMenu.js from Triacontan in Japan.
I would like to create a custom menu with it and display realtime there.

However, it does not work.

I tried to write a script in common events to call it and display it, but I can't figure out how to make it display in the triacontant plugin.

I would like to know if there is a way or js to display the time on the menu screen, even if it is another plugin.
I would like to display it in hh:mm.


Sorry if this is rude.

I would appreciate it if you could help me.

js described in Common Events:
const now = new Date();
const hours = now.getHours().toString().padStart(2, '0');
const minutes = now.getMinutes().toString().padStart(2, '0');
$gameVariables.setValue(6, `${hours}:${minutes}`);

Triacontan plug-ins:
Edit, my bad, didn't read it through ^^

So, you likely want to use a custom script for this.

I'm not familiar with their plugin, sorry
You should be able to display it using $gameVariables.value(6) or \V[6]
Sorry for the late reply from work!
Thanks for your response.
I will take a look at your plugin as well.
Edit, my bad, didn't read it through ^^

So, you likely want to use a custom script for this.

I'm not familiar with their plugin, sorry

You should be able to display it using $gameVariables.value(6) or \V[6]

Thank you for your response!

I was able to display the time if the text display!

There is the following item in the plugin, where you fill in the `Text:${$item.name}` with what you want to display.
this.drawTextEx(`Text:${$gameVariables.value(6) }`, r.x, r.y, r.width); // any text drawing(with control character conversion)

If $$gameVariables.value(6) is specified, the value is 0.
Is this 0 because the common event is not called?
\V[6] is displayed as \V[6].
Common events have a parallel common event setting, which can be used to call common events in parallel....
Is it possible to call the common event directly in `Text:${$item.name}`? (I'm not sure if my writing style is bad or not, but I get an error:_)

Sorry for asking about Japanese scripts.
I don't have many people on the Japanese forum...
The default value of a game variable is 0. Your common event isn't running.
You could try
Code:
`Text:${${new Date().getHours().toString().padStart(2, '0') + ":" + new Date().getMinutes().toString().padStart(2, '0')}}`
The default value of a game variable is 0. Your common event isn't running.
You could try
Code:
`Text:${${new Date().getHours().toString().padStart(2, '0') + ":" + new Date().getMinutes().toString().padStart(2, '0')}}`

Thanks again for today.

I have tried it and the console log shows the following

SyntaxError: Missing } in template expression

There doesn't appear to be any }'s in the code that I forgot to close.

For reference, I paste the console log and the js at line 2597.
(The Japanese part is written as any text drawing (with control character conversion))

Thank you for your time.
Please help me a little more :-...
スクリーンショット 2025-06-19 190423.png

スクリーンショット 2025-06-19 190658.png
If it's saying it's missing a } just add another one at the end. I tried that expression as is in SRD HUDMaker and it worked for me.
check out my free plugin it have every thing almost all real time you just have to put your timezone in plugin comand manger
and if you dont understand all of the pluign have video tutorial in fourm likn
If it's saying it's missing a } just add another one at the end. I tried that expression as is in SRD HUDMaker and it worked for me.

!!! It's done! I was able to display the time!
And Thank you! Thank you so much!
Thank you so much for sticking with me for the past few days for my poor question!
Thanks to you, I was able to solve it.
I don't know how to thank you, but please let me credit your name when the game is finished!
Thank you so much!(;ω;)

P.S.
I watched your youtube channel!
They were all great videos.
I especially liked the one where you use only scripts and no plug-ins to control the game!

check out my free plugin it have every thing almost all real time you just have to put your timezone in plugin comand manger
and if you dont understand all of the pluign have video tutorial in fourm likn
Thank you for your answer!
It looks like a very useful plugin, and it's great that you can display the current time!
I'm also interested in the custom UI feature, I may have to use it.
Thank you for your answer!
It looks like a very useful plugin, and it's great that you can display the current time!
I'm also interested in the custom UI feature, I may have to use it.
go ahed feel free to use, in real time you can use any time zone you want , if you want you can also change time zone from event let say you want to change america to europe or africa or asia you can do it by event any time 🙂 feel free to use my plugins , dont forge to credits🙂
1.png

Original thread: https://forums.rpgmakerweb.com/threads/do-you-know-how-to-implement-real-time-in-a-custom-menu.178386/