This may seem like an odd question. I'm trying to implement a calendar into a text adventure game I am building, where the minutes and hours change depending on what the character does. So far I have been able to implement this rather well using variables, and I have been able to use HUD Maker to display a 24-hour clock based on these variables: a variable for days, one for hours, and another one for minutes.
The problem, however, is that single digit variables only display as just that, single digits. So any hour or minute below 10 would be rendered like 2:0 or 4:5, instead of 02:00 or 04:05 like in a standard 24-hour clock.
The only way that I can see to possibly to display the variables like that would be to set up a conditional branch and have a text string variable of the proper 24-hour clock style display for each minute and hour. But with 60 minutes in an hour and 24 hours in a day, this sounds like it would be a lot of work, and I'm wondering if there isn't a simpler way to go about this, either in the editor itself or with JavaScript.
The problem, however, is that single digit variables only display as just that, single digits. So any hour or minute below 10 would be rendered like 2:0 or 4:5, instead of 02:00 or 04:05 like in a standard 24-hour clock.
The only way that I can see to possibly to display the variables like that would be to set up a conditional branch and have a text string variable of the proper 24-hour clock style display for each minute and hour. But with 60 minutes in an hour and 24 hours in a day, this sounds like it would be a lot of work, and I'm wondering if there isn't a simpler way to go about this, either in the editor itself or with JavaScript.