So I want to make plug-ins... what to do once I can read JS? (Solved!)

Hi y'all!

Started learning JavaScript a while back via this website on a recommendation from someone here, and I've noticed I'm near the end of its list now, so a thought's occurred to me:

Once I'm confident I can read the language (and hopefully write in it)... how do I actually go about making plug-ins?

My thought on my next step is I need to understand the JS Library part of the Help Documentation, but I'm not quite sure on the best way to go about doing that, or if it's even the right next step!

So figured I'd ask for some advice.
Is the JS Library what I need to understand next do y'all think?
And if so, do I just go from Page 1 to the end with a notebook taking notes?
Or maybe I should download some plug-ins from here that are simple and have their code public to dissect?
Or maybe there's a tutorial out there I haven't found on this topic?

Any friendly advice is appreciated!
Obviously everybody's brain is different, but I would suggest that if you're actually at the end of those tutorials, looking at RPG Maker's code should just make sense to you.

You should be able to identify what is a variable, what's being called as a method of that variable, and be able to follow the path of function calls to understand the sequence of events.

If you can't do that, I'd suggest you choose some portion of the code you're interested in writing a plugin for and ask about what you don't understand from reading it.

My thought on my next step is I need to understand the JS Library part of the Help Documentation, but I'm not quite sure on the best way to go about doing that, or if it's even the right next step!
The JS Library is just reference material. You should understand it insofar as you know what it means when each page says "this is an object, these are its properties and these are its methods". There's no particular need to try to memorize all properties and methods of every data type in the engine...that doesn't make much sense.

Or maybe I should download some plug-ins from here that are simple and have their code public to dissect?
Sure. Those are going to essentially be the same thing as choosing a portion of the core scripts and reading through them, but they can show you how to alias or overwrite methods in a plugin.

Or maybe there's a tutorial out there I haven't found on this topic?
Trihan has a Jump Into JavaScript that you should be able to understand at this point in your studies, but I don't believe it's complete for all files. And it's not really a tutorial so much as it is explaining the code in English which, again, I think you should be able to do.

But overall, I think it's at this point that you start asking specific questions if there's something you read or something you want to do and you don't understand how.
Obviously everybody's brain is different, but I would suggest that if you're actually at the end of those tutorials, looking at RPG Maker's code should just make sense to you.

You should be able to identify what is a variable, what's being called as a method of that variable, and be able to follow the path of function calls to understand the sequence of events.

If you can't do that, I'd suggest you choose some portion of the code you're interested in writing a plugin for and ask about what you don't understand from reading it.


The JS Library is just reference material. You should understand it insofar as you know what it means when each page says "this is an object, these are its properties and these are its methods". There's no particular need to try to memorize all properties and methods of every data type in the engine...that doesn't make much sense.


Sure. Those are going to essentially be the same thing as choosing a portion of the core scripts and reading through them, but they can show you how to alias or overwrite methods in a plugin.


Trihan has a Jump Into JavaScript that you should be able to understand at this point in your studies, but I don't believe it's complete for all files. And it's not really a tutorial so much as it is explaining the code in English which, again, I think you should be able to do.

But overall, I think it's at this point that you start asking specific questions if there's something you read or something you want to do and you don't understand how.
Thanks for the reply!
That's my hope (that reading it will make sense to me now lol), but I was struggling to find where it actually is (the code I mean), I thought it'd be in the JS Library but I take it from your comment that it's not?

Is there a place you can access it in-software like in the older RPG Maker versions? Or a file among the folders somewhere that I can open that has it all in one place for me to go through in VisualStudio or something?

Also I'll check out that Trihan Jump into JavaScript too, thanks for the help and info.
Also also, I think you were the one who recommended me that w3schools website in the first place last year! Lol, so thanks again for that too! I've really enjoyed getting into that!
The entire code for the game is in the appropriately-named js folder of your project.

If you've ever installed a plugin, you've gone right past it.
The entire code for the game is in the appropriately-named js folder of your project.

If you've ever installed a plugin, you've gone right past it.
I've not actually done any plugins yet! Wanted to learn the language first, but I see! The individual pages from the older engines' script sections are now individual .js files to open up in notepad/codewriterofyourchoice.

Thanks for the explanations, I'm not very computer literate outside of browsing the internet and now hopefully JavaScript lol, I often get lost in file directories 😅

Think you've answered everything I wanted help/clarification on, so thanks again!

Original thread: https://forums.rpgmakerweb.com/threads/so-i-want-to-make-plug-ins-what-to-do-once-i-can-read-js-solved.169485/