Displaying global variables in message boxes

Hello,


I want to display the content of a global variable in a message window. How can I do this without the use of the normal variable system (I hate it)?


For example something like this:


$character = ["name", gold, strength]


Message: ,,$character[0] has $character[1] gold."


I tried something like \$variablename or \V$variablename and \V[$variablename] but it does not work. Does such a command exist?
wait... do you mean you hate \v[1] and \n[1]?
No I don't like to use the "normal" variable system. I try to find a way to display $global variables just like the other variables from the variables list.
No, such a command does not exist.


You will need to use a plugin that will allow you to enter your own formulas for that.


I don't know if such a plugin exists.
Okay than I will better use the first 10 "normal" variables from the system as follows:


0001: argument0


0002: argument1


..etc.


So I will only have to use about 10 of them and can reuse them.
It would be possible to make a plugin (could even be a mod to whatever plugin you're using that provides the global variables, if you're using one) that will modify the message system to include a new escape code for your variable.
I'm not using one yet. But surely I will, if I am in the polishing phase of my project. I will keep the mod-thing in mind. Perhaps I can ask someone to make this for me.

Original thread: https://forums.rpgmakerweb.com/threads/displaying-global-variables-in-message-boxes.55560/