Hello 🙂
So...
I have been trying to learn JS, to understand things better, I have tried to practice modifying my menus ...
Recently, I have tried to learn how to use meta, to get information from note tags ... I even tried looking into a plugin which uses it (MrTS Limited Inventory), and watched Soulpour777 video about meta, and still don't understand how to use it haha 😅
Can someone explain it to me, if its not much trouble? 😩
(or at least tell me what else to watch/read about it?)
Basically, any object that has a note box attached to it (Actor, Class, Skills, Item, Weapon, Armor, States etc.) will automatically look for tags that resemble HTML tags. These are in a particular format <tagName: value>. Anything the engine finds in this format will dump into the meta property with the tagName as a property and the value as the value. All you should need to do is make sure the meta property exists and then look for the tagName property that your plugin uses. If you find it then you can do something with the value that was provided. If you don't find it and you put a note tag in the note box then it is either formatted wrong or you are looking in the wrong object for it.
For instance, enter <race: Elf> into the first actor's note box. Now load your project, open up the console and type in $dataActors[1]. You'll find a meta property that, if expanded, will have a property called race with a value of " elf". These meta tags often times don't transfer over to their in-game objects so you may have to specifically look at the $data object as opposed to the $game object.
Using it in a plugin will depend largely on what your plugin does. In all actuality, it's just data that the dev is providing for your plugin. The plugin itself will read the data and do something based on what data was entered. You'll definitely want to get a good grasp on JavaScript first before worrying too much about this. Ever since RPG Maker MV 1.5 came out, the meta information isn't nearly as important as it once was. The new format for plugin parameters has opened the door to have most, if not all, information entered into the parameters themselves as opposed to note tags.