Named Variables check in text

I have had no luck trying to find this without having to go through a plugin, so i was hoping someone may have a non plugin answer for me.


What im trying to do is have an item that the player can open and choose a job title and check their progress, so they use the book in the inventory and the choices pop up and they choose [Harvesting] then it would pop up and tell the player they had say 25/100 points that is being called from the /v [x] its assigned to, but im also wondering if it some how possible to have it put what level that job was at so if it was say 5/100 it would say [Beginner] 5/100 and then when they get more points in harvesting the next time they check it, it would update and be like [Master] 85/100 so that way players could know what ranking they are at for reference points during gameplay
So if I am understanding you correctly, your problem is that you don't know how to display that [Beginner]/[Master]/... Everything else you do have figured out? Or do you also want advice on that?

If you use the 'Script' Option of the 'Control Variable' command, you can set the variable to any data type you want. Including strings. So you could set a variable to "[Beginner]" (do not leave out the "" or '') and display that variable as usual with \v[x] in your 'Show Text' command.
ive never actually used the 'Script' option for that, do you possible have an image of example i could see visually? and the names are not set through variables they are just names of the rankings i wish to use to give more flavour then just the numbers pulled from the variables, since putting in the game that you are at [Master] rank is more interesting then saying you have [85] harvesting
Couldn't you do this with a simple conditional branch and show the relevant text string as a whole depending on the value of that variable? 🙂

Like an

If VARIABLE > 20 SHOW THIS BOX
If Variable > 30 show this box

etc etc etc

Longwinded, but it'd definitely work
i never actually thought of branching it like that, thank you for that
you'd want to start the checks from the highest rank, because if V > 20 is the 1st check it will ignore any else branch checking for a higher number after.
but if the 1st check is if V >= 100 passes theres no need to even check else branches, if it fails it just moves onto branches checking for the next highest rank.

using lower number in the 1st check only works if checking 'less than' not 'greater than'
ive never actually used the 'Script' option for that, do you possible have an image of example i could see visually? and the names are not set through variables they are just names of the rankings i wish to use to give more flavour then just the numbers pulled from the variables, since putting in the game that you are at [Master] rank is more interesting then saying you have [85] harvesting
Here you go:

Original thread: https://forums.rpgmakerweb.com/threads/named-variables-check-in-text.143066/