RPG Maker MZ
Core Commands v1.0
Download (5.98 kB, 134 times downloaded)
Since this plugin is entirely based on plugin commands, it's essentially plug-and-play.
Plugin commands
Set wait mode
This allows you to manually set a wait mode. This is mostly useful if you either have a custom wait mode, or a plugin requires you to manually set the current wait mode.
Arguments:
Wait mode | The name of the wait mode. |
/****************************************************************************** * CXJ_MZ_CoreCommands.js * ****************************************************************************** * By G.A.M. Kertopermono, a.k.a. GaryCXJk * ****************************************************************************** * License: MIT * ****************************************************************************** * Copyright (c) 2022, G.A.M. Kertopermono * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the "Software"), * * to deal in the Software without restriction, including without limitation * * the rights to use, copy, modify, merge, publish, distribute, sublicense, * * and/or sell copies of the Software, and to permit persons to whom the * * Software is furnished to do so, subject to the following conditions: * * * * The above copyright notice and this permission notice shall be included in * * all copies or substantial portions of the Software. * * * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * * DEALINGS IN THE SOFTWARE. * ******************************************************************************/ /*: * @target MZ * @plugindesc Core plugin that adds functional commands. * @author G.A.M. Kertopermono * * @help * ============================================================================ * = About = * ============================================================================ * * This plugin adds several plugin commands. * * ============================================================================ * = Placement = * ============================================================================ * * Make sure to place this plugin below the plugins that this plugin requires, * but above plugins that rely on this plugin. * * ============================================================================ * = Usage = * ============================================================================ * * Since this plugin is entirely based on plugin commands, it's essentially * plug-and-play. * * --------------- * Plugin commands * --------------- * * Set wait mode * ------------- * * This allows you to manually set a wait mode. This is mostly useful if you * either have a custom wait mode, or a plugin requires you to manually set * the current wait mode. * * Arguments: * * Wait mode - The name of the wait mode. * * ============================================================================ * = Changelog = * ============================================================================ * * 1.0 (2022-07-20) * ---------------- * * * Initial release * * ============================================================================ * = License = * ============================================================================ * * Copyright (c) 2022, G.A.M. Kertopermono * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. * * ============================================================================ * * @command setWaitMode * @text Set wait mode * @desc Sets a wait mode. * * @arg waitMode * @type string * @text Wait mode * @desc The wait mode to set. */ (() => { window.CXJ_MZ = window.CXJ_MZ || {}; const { CXJ_MZ } = window; CXJ_MZ.CoreCommands = CXJ_MZ.CoreCommands || {}; CXJ_MZ.CoreCommands.version = '1.0'; const pluginName = 'CXJ_MZ_CoreCommands'; /* ------------------------------------------------------------------------ * - Plugin commands - * ------------------------------------------------------------------------ */ PluginManager.registerCommand(pluginName, "setWaitMode", function(args) { this.setWaitMode(args.waitMode); }); })();