Look at the timer top-right, it doesn't feel right to me. Samething goes for messages.
How do I display '00' as variable without a plugin?
RPG Maker MZ SupportThere's a padZero function you can call on strings.
Ok but show me how this works
How are you displaying the values?
You do, for example
$gameVariables.value(50).padZero(2)
You do, for example
$gameVariables.value(50).padZero(2)
This was asked so nicely...
I use 3 variables, this 2 ":" aren't variables.
Okay. I'll try
It didn't work
Works for me
Try to be more specific. What did you try? Screenshots would be helpful in helping you.
Look then.
I tried putting this code in variables set value and it add multiple ones
I tried putting this code in variables set value and it add multiple ones
and thats why showing what youve done is helpful.
padZero doesnt change the value of the variable. it just returns a formatted version of it. since youre still operating on variable 81, keep it as it is, use a control variable command to make another equal to $gameVariables.value(81).padZero(2), and then display that other variable in the text box
padZero doesnt change the value of the variable. it just returns a formatted version of it. since youre still operating on variable 81, keep it as it is, use a control variable command to make another equal to $gameVariables.value(81).padZero(2), and then display that other variable in the text box
Yeah I thought the OP was going to put this script in SRD HUDMaker or something because it would work there, not in an escape code in a textbox. That's why I asked how it was being displayed.
I was using HUD maker and you other project lagged game cuz so many times stuff going on so I use new project to test things before I go back
I tried equal to command and show me 01 but I wanted to increase or decrease the value tho
Edited: it worked only by counting down but counting up looks pretty buggy with 01111.
It was use for an actual timer like 1:00 that only counts down.
Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-display-00-as-variable-without-a-plugin.175403/