- Joined
- Dec 16, 2017
- Messages
- 208
- Reaction score
- 720
- First Language
- English
- Primarily Uses
- RMMZ
NOTE: This is NOT a tutorial for making MZ plugins.
I've looked for an absolute bare bones plugin template for MZ and have not been able to find one, so here's my attempt. To keep things as simple as possible, this template does not include arguments.
I've looked for an absolute bare bones plugin template for MZ and have not been able to find one, so here's my attempt. To keep things as simple as possible, this template does not include arguments.
JavaScript:
//=============================================================================
// MZpluginTemplate.js
//=============================================================================
/*:
* @target MZ
* @plugindesc v0.0.1 Bare Bones Plugin Template
* @author Starbird
* @help MZpluginTemplate.js
*
* This is a basic template for a plugin.
*
* @command runMe
* @desc this is the command you can call in the Plugin Manager
*
*
*/
(() => {
//
const pluginName = "MZpluginTemplate";
PluginManager.registerCommand(pluginName, "runMe", args => {
// this stuff will happen when you call the plugin command runMe
console.log('You called the plugin command runMe!')
});
//this stuff will happen no matter what
console.log('Your plugin MZpluginTemplate is working.')
})();
// end of file