RMMZ Bare Bones MZ Plugin Template

Joined
Dec 16, 2017
Messages
177
Reaction score
580
First Language
English
Primarily Uses
RMMV
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.

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
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Oh no. That moment when you try to fix something you modified in your game, like, a year ago but didn't want to fix then, and you now have no idea what you even did. Me right now, trying to figure out why my gold window is over stretched?
LittlePIGGY wrote on atreyoray's profile.
Where are you TT^TT
We need ARP_InGameManual for MZ
Oh my gosh. Thank you, Macy's! Thank you so much! You have made me very happy!
Happy Thanksgiving everyone! What are you thankful for? I'm thankful that I no longer have PTSD, and that I get to enjoy a good meal with my mom and stepdad! It might not be the same as before COVID, but at least I still get to enjoy the holiday!

Forum statistics

Threads
105,549
Messages
1,014,561
Members
137,225
Latest member
Eryndor
Top