Coding my first plugin. But where to start?

Hello everyone, I'm currently learning how to javascript and the best way I learn is to try something I never did before and attempt to do it! So I have little knowledge of JS scripting I'm like an LV3 Java....
But I'm currently doing a course in coding for the website and thought I'd get my skills up in Java somewhere and I would like to do it here.

I've read the rules for the learning Java and I'd agree with the completely. So without further ado let's get down to business.

My first plugin I want to do is a simple jump plugin. You press a button the character jumps. That's it. The reason why I want to do this is so I can get a basic understanding how Java communicates with the maker, what commands and words do I need to put in, and how do I make the character jump? do I need to add an input? do I need to let the program know that when the input is pushed it knows that it's player that needs to jump? And of course, once I get the basic's down I plan on building upon my code and add things like SE to when he jumps or maybe a knockback if he jumps into a wall or something.

So course this page is pure to receive feedback and help from the community so that one day I can make some quality plugins for the members on here as I really do enjoy coding.

Many thanks, o/

I will update this post to save double posting for things like when I do finish the code.
The first step is probably to get your nomenclature correct and make sure that you don't learn the wrong rules. Java and JavaScript are two different languages with different rules.

Someone once wrote "Java is to JavaScript as ham is to hamster"...

So if you have indeed been learning Java like you wrote, please forget all of that.
Ah yes, I need to be careful of that. I'm learning Java scripting, not Java 🙂
For places where to start with plugin making generally, or even some specific advice about particular types of plugins, I'd suggest you take a look at the following resources:

I'd suggest looking at Trihan's The anatomy of a plugin over in the tutorials forum, and Soulpour777's RPG Maker MV Plugin Scripting Tutorials series on YouTube.

There's some other good information in the tutorials forum, too, but you may have to dig for it a little bit.

A lot of people also like SRD's How to Make a Plugin in RPG Maker MV YouTube series. (I haven't sampled much of it myself.)

Sorry that this doesn't contain a lot of information specific to the plugin you want to write. The best advice I can give you related to your specific plugin is that if you don't know where to begin, you might try taking a look at some other plugins people have written for the same thing, and see if you can decipher how they got it to work. Obviously you can't copy them line for line, but the basic principles are going to be the same for everyone.
I take my most important knowledge from the scripts themselves. There is jumping in the core scripts. There is also input in the core scripts. So I see how they are handled and then sneakily connect them together 😀
I already had a basis of programming in general when I started so this may not work for you but worth a shot I say. My JS was rusty though.

I put the project in source control then I decided to modify things in the core scripts. Simple things really. In my case I modified how exp is earned which is under rpg_objects.js inside Game_Actor.prototype.expForLevel where I could write different formulas and see them when test playing. Yes the editor allows this, but something simple like this is good for learning on the JS side of things. You could even make your exp growth more complex than the editor allows if you choose.

Then because source control is a thing, I undid my changes so that rpg_objects.js was back to its original state and tried to do the same thing via a plugin. When I got that working, then I tried to see if I could adjust things via the plugin parameters. After that, I attempted more complex things until I had a general idea of how MV worked behind the scenes. There is still a lot I don't know, but I can easily figure it out by just reading the code in the rpg_*.js files which then usually allow me to get things working the way I wanted.

And when there was something JS did that was weird such as it's object prototype feature or the ability to do things like double negate (!! operator) on variables and objects, I simply just visited Google as these types of things just don't exist in other languages.

Original thread: https://forums.rpgmakerweb.com/threads/coding-my-first-plugin-but-where-to-start.88743/