Happy Halloween everyone.
I've attached a screenshot of a HUD I made with HUD Maker Ultra and the in-game evented time system. The problem is immediately obvious: the minute variable text display isn't including 0 before single digits. This problem would still be an issue in RMMZ with no plugins available if displaying the minute variable in any other message window.
The time is supposed to be Military Time so modifying the text code to display the hour variable at the same time is optional.
The time is just tracked in-game by # of frames passing per some simple evented code and is going to be adjusted up or down later to design simple game balance concepts around the total number of frames passing in a 'day' to determine how quickly a day passes. This does not have to be precise since sleeping generally sets the time back to 6 AM in-game.
I skimmed the text codes for RMMZ and the Visustella Message Core and did not find anything to solve the problem.
Is there a text code or javascript line that would change the display specifically from '6' to '06' in an array for any value of 'minutes' from 0 to 9? Or do I need to run a conditional thread to intentionally set that value in parallel to those value(s) and allow them to increment normally, then set it to '10' at 10 minutes?
This is purely cosmetic prototyping at this stage, but Google kept yielding JavaScript threads trying to track system times or other things more complex than what I'm trying to tweak here.
I've attached a screenshot of a HUD I made with HUD Maker Ultra and the in-game evented time system. The problem is immediately obvious: the minute variable text display isn't including 0 before single digits. This problem would still be an issue in RMMZ with no plugins available if displaying the minute variable in any other message window.
The time is supposed to be Military Time so modifying the text code to display the hour variable at the same time is optional.
The time is just tracked in-game by # of frames passing per some simple evented code and is going to be adjusted up or down later to design simple game balance concepts around the total number of frames passing in a 'day' to determine how quickly a day passes. This does not have to be precise since sleeping generally sets the time back to 6 AM in-game.
I skimmed the text codes for RMMZ and the Visustella Message Core and did not find anything to solve the problem.
Is there a text code or javascript line that would change the display specifically from '6' to '06' in an array for any value of 'minutes' from 0 to 9? Or do I need to run a conditional thread to intentionally set that value in parallel to those value(s) and allow them to increment normally, then set it to '10' at 10 minutes?
This is purely cosmetic prototyping at this stage, but Google kept yielding JavaScript threads trying to track system times or other things more complex than what I'm trying to tweak here.