TUTORIAL: The Absolute Basics of Plugin Making

Thank you. This is the most understandable js has been for me so far.
Thanks KostasVS this really helped me alot, would be really nice when you could explain more.
Thanks KostasVS this really helped me alot, would be really nice when you could explain more.
Happy I helped! My post, combined with the original post, pretty much explains all the essentials.
Is there something I should elaborate on?
This is a very good template, however the parameter as of now does nothing. Down near the bottom you talk about calling parameters that the user can edit, do you have any plans to explain how that is done? I'd love to learn that.
This is a very good template, however the parameter as of now does nothing. Down near the bottom you talk about calling parameters that the user can edit, do you have any plans to explain how that is done? I'd love to learn that.


Here is an example for getting a number and a string parameter.


Save it as ParameterTestPlugin.js (or rename accordingly).

JavaScript:
/*:
 * @plugindesc Short description of plugin.
 * @author Your name
 *
 * @param My Number
 * @desc Description of this parameter.
 * @default 0
 *
 * @param My Text
 * @desc Description of this parameter.
 * @default hello
 *
 * @help Long description goes here,
 * can be several lines
 */
(function() {

    var parameters = PluginManager.parameters('ParameterTestPlugin');
    var myNumber = Number(parameters['My Number'] || 0);
    var myText = String(parameters['My Text'] || "hello");
    console.log ("A Number = " + myNumber + ", text = " + myText);

})();

Add this plugin and press F8 ingame to open the console and see the message.
This dropbox no longer works qvq
the link doesn't work anymore. maybe someone could re upload it?

thanks!
Edit: Never mind. Spent weeks learning JS and looking at other plugins as examples. That's the way to go.
guys ... where do you find all the classes and script calls for MZ Java script... i looked everywhere ... how do you know what calls which Param?
like if i want to edit the time progress system ... how would i know whats the calls for it?
where is the manual!!!!
guys ... where do you find all the classes and script calls for MZ Java script... i looked everywhere ... how do you know what calls which Param?
like if i want to edit the time progress system ... how would i know whats the calls for it?
where is the manual!!!!

When you're creating a new project you can find all javascript files like "rpg_objects.js" and "rpg_scenes.js" in your projects folder in the "js" directory.

@casper667 split the MZ files so that each class has it's own file and postet them here
Can you re-upload the template? This is no longer available on Dropbox.

Thank you in advance.
Is this a dead thread, I saw that the template was removed from dropbox as well and it seems to have been down for quite some time. Anyone have it that could re upload?
hi , your "Download my template" part link is now invalid, please update, thx!
Thanks for the tutorial

Original thread: https://forums.rpgmakerweb.com/threads/tutorial-the-absolute-basics-of-plugin-making.47215/