@Aesica: I didn't even think I could do it in a separate file, using it as a plugin. I just don't understand how you accepted the elements using "\".
That's pretty much how plugins work.
🙂
If the base files (rpg_*.js or rmmz_*.js) have this function:
Code:
Game_Something.prototype.doStuff = function()
{
console.log("Hello!");
};
And you make a plugin with
Code:
Game_Something.prototype.doStuff = function()
{
console.log("Hello World!");
};
The plugin version is executed after the rpg/rmmz files, causing it to overwrite the base function. So when you run the doStuff function, it'll say "Hello!" without any plugins or if the plugin is disabled, or "Hellow World" if the plugin is installed and enabled.
Generally you always want to make changes to the core files through plugins instead of directly in the core files themselves, because if you ever go to update your project with newer, updated versions of rpgmaker's core files (with bugfixes or other optimizations) your changes to any edited core files will be lost.
Edit: As for accepting text codes, Window_Base has two functions for writing text: drawText() which is a simple command to write basic text, and drawTextEx() which is the one that renders text codes, icons, etc. Both have their uses, but in the case of map names, I'm honestly not sure why they went with drawText over drawTextEx.