Quick question

Is there a way to label a variable but not have that label show up with the variable. I'm using Yanfly's Actor variables and want discrete values for some variables per party member so they would have the same name and i need a way to know which is which.

Basically i want something like

003: [MC] Strength

but not have what is in the brackets show up.

Please help
It's possible, but you'd have to edit the plugin to achieve that effect.

Just some quick console output to show how you'd get the part after the brackets:

var string = "[MC] Strength"
var startIndex = string.lastIndexOf("]") > 0 ? string.lastIndexOf("]") + 2 : 0;
string.substr(startIndex)
OUTPUT -> "Strength"
It's possible, but you'd have to edit the plugin to achieve that effect.

Just some quick console output to show how you'd get the part after the brackets:

var string = "[MC] Strength"
var startIndex = string.lastIndexOf("]") > 0 ? string.lastIndexOf("]") + 2 : 0;
string.substr(startIndex)
OUTPUT -> "Strength"

Thank you. Personally i am not a coder. I make games with friends in unity and I do 3d modelling and others take care of the code. Thinking about it more i think that i will just maintain an excel spreadsheet labeling them and reference that when needed. Thank you nevertheless
Thank you. Personally i am not a coder. I make games with friends in unity and I do 3d modelling and others take care of the code. Thinking about it more i think that i will just maintain an excel spreadsheet labeling them and reference that when needed. Thank you nevertheless

You any good with planes? I need a replacement 3D modeller for a commercial project.
If you don't want to do that you could just create sections of variables for each character. Have an unused var called MC and all of mc's variables below it. Then do the same for all of the other characters.
@Sicon3 For future threads, please use a meaningful title. That way people will have some idea of what you are looking for without having to open the thread. Above all, however, it means that if anyone has a similar query in the future, they will be able to find the thread with an answer.

Thanks

Original thread: https://forums.rpgmakerweb.com/threads/quick-question.75462/