How do I create Plugins? Change the Code?

Hi there!

So, I already know a bit of javascript from messing with other engines, I would like to know how can I change the code in MV, or add extra plugins?

For example, let's say I want to create a condition where the player can't attack (still can do other things like using magic, items, etc).

Should I just edit the core files, or is there any special step I should take?
you should create a new javascript (.js) file in the plugins directory. then, within the mv editor, you should add the plugin (so it gets loaded).

Once you have that step, all you have to do is write some code in your new file, save it, and load your mv game.

Its recommended to not edit the main codebase directy to avoid issues down the line. 🙂
Whenever possible, you also shouldn't overwrite the object prototypes themselves. You can alias the prototype instead and then just add the extra code you need (or rerun the same code with your changes). This will limit the amount of compatibility issues you'll encounter with other plugins. Take a look at my or other MV plugin creator's work for reference.

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-create-plugins-change-the-code.97545/