How do I display '00' as variable without a plugin?

Look at the timer top-right, it doesn't feel right to me. Samething goes for messages.

Platformers MZ 2025-02-12 4_21_38 PM.png
There'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)
This was asked so nicely...
How are you displaying the values?

You do, for example

$gameVariables.value(50).padZero(2)
I use 3 variables, this 2 ":" aren't variables.

Okay. I'll try

How are you displaying the values?

You do, for example

$gameVariables.value(50).padZero(2)
It didn't work
Works for me
1739490176308.png
It didn't work
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
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
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.
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
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
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.
I tried equal to command and show me 01 but I wanted to increase or decrease the value tho

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
showing what youve done is helpful.

but also
I thought the OP was going to put this script in SRD HUDMaker or something because it would work there

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-display-00-as-variable-without-a-plugin.175403/