Yanfly StatusMenuCore, Actor Variables: way to use gauges?

Damascus7

Veteran
Veteran
Joined
Jul 21, 2019
Messages
99
Reaction score
23
First Language
English
Primarily Uses
RMMV
Hi again. I'm looking to do something specific with the Actor Variables extension for Yanfly's Status Menu Core. Right now I have a page that displays actors talent levels:

statusgauges.png

However, I'd also like to be able to show what the max value for those ranks are, so the player doesn't get confused when the ranks stop increasing. I'd like to show this either by way of a gauge that fills up, or by showing something like "0/5" instead of "0." However, from what I've seen with this plugin it only allows you to show the value of a variable to the right and nothing else. Does anyone how I could accomplish something like this with this plugin?
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
666
Reaction score
382
First Language
English
Primarily Uses
RMMV
Using a script call you can set a variable to contain anything at all, even a string.

$gameVariables.setValue(X, "0/5")
If you run that script (and replace X with the variable ID), and then use that variable in the menu, it should show 0/5 as the value. You'd naturally have to change whatever system you're using to set the variable in the first place to set it to the string instead of just the number, but that shouldn't be too hard.
 

Damascus7

Veteran
Veteran
Joined
Jul 21, 2019
Messages
99
Reaction score
23
First Language
English
Primarily Uses
RMMV
Is there a way to insert a variable into the string? If I remember my Java correctly, would something like this work?

$gameVariables.setValue(X, $gameVariables.value(Y) + "/5")
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
666
Reaction score
382
First Language
English
Primarily Uses
RMMV
That should work, yes.
 

Damascus7

Veteran
Veteran
Joined
Jul 21, 2019
Messages
99
Reaction score
23
First Language
English
Primarily Uses
RMMV
Works like a charm, thanks man!
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

// Looks at Elfkisser, realizes he'd have to either install Windows 10 or compile it for Linux
// Didn't install Elfkisser.
Too much effort for a curiosity. :popcorn:
I was just high-fiving myself for all I've learnt in the engine, and how far I've come, only to forget to remove the Immortal state from a semi-scripted battle. Now the enemy never dies and I feel so smart >.>
Playtest your stuff. Always playtest.
just spent FOREVER troubleshooting an issue with my keyboard... turns out the cord was just loose OTL
I count on someone one time, I let them promise something to me, and one week later it's complete silence as I'm completely let down. I hate everything.

Forum statistics

Threads
99,224
Messages
963,213
Members
130,813
Latest member
Gremter
Top