This tutorial may change your experience of how you use RPG Maker MV.
I must admit, I found this method long time ago by accident. I only have little knowledge of coding and can't call myself a proper programmer. As I never see anybody else has discovered / publishing it, I thought this would be groundbreaking.
What is this about?
Have you ever thought of how big your story and your dialog is and it will be a pain if you have to edit em or even keep em organized? "Can't we just store the whole text inside text editor?" Certainly that would be convenient. And this tutorial is the simplest form to achieve that.
Feature
Keep your story and dialog organized inside text file (js).
Might achieve new potential for databasing. Less hard-code inside the editor.
Teach you a bit about coding.
Requirement
Basic knowledge of how to use plugin.
Basic knowledge of using text editor.
Difficulty level : Adept
How?
Spoiler: Making the Plugin
Prepare your favorite text editor! We are making the plugin to store your text now! It's WAAAAY too easy that I doubt it could even be called coding.
Make an object. Name it whatever you want. It's case sensitive.
Store your text inside a key whatever you name it following this format.
sample_01 for example
You are done! Easy peasy, right? Save it as a js file with whatever name you like. Then put it inside yourgame/js/plugins folder.
Don't forget to activate it in your plugin manager.
Spoiler: Accessing Your Data
Yes, you may already access it directly through event!
The proper way to access it is by using game variables.
(It's CASE SENSITIVE, but I posted an outdated screenshot)
Your variable is now containing your stored text! Let's see it in action using show text~
Result :
Spoiler: Control Characters and Escape Code
To write these code, we just have to borrow those that already made.
Let's make a quick example
Red : Control Characters in show text (\N[ID], \V[ID], etc) shall start with \x1b Cyan : To make a new line (enter), write \n Purple : To make a new page (window), write \f Green : Before writing a single quote ', put a backslash beforehand \
Result :
Points to be noted
This method open new possibility to access data. With more understanding, you could even organize your own database.
It's not just limited to data. You may also create your own function and directly access it.
Making an object are not really necessary, but it's RECOMMENDED to avoid polluting the namespace.
Since your plugin consist of constants, you may access them using different mean such as local variable, other plugin, etc. Using game variables is the proper way since they are a global variable and saved by the system itself.
Escape code are not global. It's only accessable through window message.
What we learn?
Making plugin without any knowledge of coding is possible. You just prove it by following this tutorial. To be honest, it's also surprise me.
Game variables are flexible since it can store different type of data anytime.
\x1b is a code used to read any control characters in window message.
For the last, let me know if there's something you don't understand or what would you like to suggest to improve this tutorial I made.