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 Posts

Latest Profile Posts


:3c here's a thing i made a while while while back
Tried mochi for the first time. It's quite nice. Has a pleasant smell and taste, and is nice and chewy.
made a bio for the protag in my project!
Beggar : "I haven't eat for days..."
Kid : "Just do crime! You will get daily necessity for free in prison~"

Forum statistics

Threads
99,159
Messages
962,454
Members
130,725
Latest member
teendinsaikha
Top