I am making a plugin, and want to release it for MV and MZ.
I did learn how to make plugin commands for MV, but in MZ this is a bit more complicated.
So this part I have and understand:
However... How , to actually call the plugin command, I have this, which is for MV:
Everything IN the command works. I have tested everything in MV and MZ, and other than creating the plugin command, it is all compatible with both engines.
So how do I convert the last piece of code to trigger a pluggin command in MZ?
I did learn how to make plugin commands for MV, but in MZ this is a bit more complicated.
So this part I have and understand:
JavaScript:
@command ccWait
@text 'Skipping time by waiting'
@desc Run this command to skip hours/days.
However... How , to actually call the plugin command, I have this, which is for MV:
JavaScript:
var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args) {
_Game_Interpreter_pluginCommand.call(this, command, args);
if(command === 'ccWait') {
My Code;
}
};
Everything IN the command works. I have tested everything in MV and MZ, and other than creating the plugin command, it is all compatible with both engines.
So how do I convert the last piece of code to trigger a pluggin command in MZ?