Calling array or variable in Show Text event but...

I'm very well aware that I can call a variable in this event Show Text with notetag \v[id] but to do this I need to use earlier event Control Variables, but I'm thinking on other way to call variable(s), but mostly I'm interested in Arrays...

For example, with Script event I can create an array, a simple array:
Code:
this._myArray = ["bunch", "of", "my", "stuff"];

And question is, how to call it in Show Text event without using command $gameVariables.setValue(myID, this._myArray[index])?
without using command $gameVariables.setValue(myID, this._myArray[index])?
Why though? is it too long? Or other reasons?
There are several reasons and most of them are:
- My game already contains dozen of variables (even though I name them to easily find what and where do, sometimes I get lost) I even developed variables organisation system (01-20 vars are for actor 1, 21-40, for actor 2 and so on).
- Because of my regular work I am able to work on my game only during weekends and not every one, so I have to remind myself what was already made - I hate unnecesary duplications.
- Call it a bad habbit, in my windows / web applications I avoid using variables and I call method directly in my functions like this (pascal example)
Code:
Label1.caption := format('This is text from TEdit element (%s), [Edit1.Text]);

But sure, I can do that like this:
Code:
var textFromEdit1 := Edit1.Text;
Label1.caption := format('This is text from TEdit element (%s), [textFromEdit1]);
- And simply I'm curious. I like to know new things.
Then can you just make your own plugin with your own escape character?
Consider this part
Code:
Window_Base.prototype.convertEscapeCharacters = function(text) {
  text = text.replace(/\\/g, '\x1b');
  text = text.replace(/\x1b\x1b/g, '\\');
  text = text.replace(/\x1bV\[(\d+)\]/gi, function() {
    return $gameVariables.value(parseInt(arguments[1]));
  }.bind(this));
  text = text.replace(/\x1bV\[(\d+)\]/gi, function() {
    return $gameVariables.value(parseInt(arguments[1]));
  }.bind(this));
  text = text.replace(/\x1bN\[(\d+)\]/gi, function() {
    return this.actorName(parseInt(arguments[1]));
  }.bind(this));
  text = text.replace(/\x1bP\[(\d+)\]/gi, function() {
    return this.partyMemberName(parseInt(arguments[1]));
  }.bind(this));
  text = text.replace(/\x1bG/gi, TextManager.currencyUnit);
  return text;
};
Add your own code, something like \ARR[index] to access your own custom array with index as the argument?
@TheoAllen this would be great enough. Thank you. I'm going to check it 🙂

Original thread: https://forums.rpgmakerweb.com/threads/calling-array-or-variable-in-show-text-event-but.106074/