I have a variable you can view on the menu screen called Completion, showing the player how much of the game is completed. The problem is that it lacks the % symbol usually associated with the 100% completion thing. Is there a way to add this symbol to the value?
Show % next to a Variable value?
RPG Maker MV SupportHow are you inputting the variables value? Normally if you're using a js eval you could just do something like this:
Though without knowing how you're doing this I have no idea if it will work.
Code:
$gameVariables.value(22) + "%"
Though without knowing how you're doing this I have no idea if it will work.
Well I didn't use any scripts I just change the value with the Control Variables event and use Yanfly's SaveCore to display it on the menu and file select screens.So where should I insert the aforementioned script?
EDIT: I made an event that runs this script but it doesn't do anything.
I haven't used the plugin myself so I can't be certain but it doesn't look like there's the option to use a variable and a text string so you'll just have to make the variable include the % sign itself. I would advise using a different variable for this so you can keep using the first one as a number.
Any time you change the number version of your progress variable, set the second variable's value to:
Replace x with the variable id of the number version of the progress variable.
Any time you change the number version of your progress variable, set the second variable's value to:
Code:
$gameVariables.value(x) + "%"
Replace x with the variable id of the number version of the progress variable.
i figured it out. I had to type the script in the Control Variables event. (Previously, I just used the Script event) It works fine now. Thanks man!
Original thread: https://forums.rpgmakerweb.com/threads/show-next-to-a-variable-value.107856/