Plugins: installing, order, parameters, notetags
How plugins get into a project, why the order matters and how you talk to them.
Installing a plugin
- Copy the
.jsfile intojs/plugins/of your project. The file name must stay as it is. - Open the Plugin Manager in the editor, double-click an empty line, pick the plugin and set it to ON.
- Read its help (in the same dialog) and set the parameters.
- Save the project. The list is stored in
js/plugins.js.
Order matters
Plugins load from top to bottom. When two plugins change the same part of the engine, the lower one usually wins. Core or base plugins go to the top, plugins that build on them below. Most plugins say in their help where they belong. If something stops working after you add a plugin, try moving the new plugin up or down first.
Parameters, notetags and plugin commands
- Parameters are the settings in the Plugin Manager, the same for the whole game.
- Notetags are short tags in the Note box of a database entry or event, like
<Cooldown: 3>. They set something for that one entry. - Plugin commands are used inside events. In MV you type a line such as
Minimap show. In MZ you choose the plugin and the command from a list and fill in the arguments. - Script calls are JavaScript lines in the Script command or in conditions, for things the editor has no button for.
Before you add a plugin
- Check it is made for your engine. MV plugins do not run in MZ without a port, and the other way round.
- Read the terms of use: free for commercial games or not, credits.
- Make a backup and test a save from before the plugin. Some plugins need a new game to work.