Welcome to PGMZ! My goal is to make it easy for everyone to find and share great plugins for creating amazing games. As a plugin developer myself, I'm excited to grow this community with all of you.
Plugin Common Base - PluginCommonBase.js
Plugin desc : Plugin Analysis Common Base
License :
・Follow the RPG Maker Series EULA only.
・Commercial Use: Allowed
・Modification: Allowed
・Redistribution: Allowed
Author : triacontane
Website : https://www.rpgmakerweb.com/products/rpg-maker-mz
Download Page : C:Program Files (x86)SteamsteamappscommonRPG Maker MZdlcBasicResourcespluginsofficial PluginCommonBase.js
File name : PluginCommonBase.js
Help of plugin :
* @target MZ
* @plugindesc Plugin Analysis Common Base
* @author triacontane
*
* @help PluginCommonBase.js
*
* This plugin is a base plugin that is meant to be referenced from other plugins.
* This plugin allows you to use the following control characters in a variety of situations.
*
* Usable Control Characters
* ¥v[n] : nis converted to the value of the nth variable.
* ¥s[n] : nis converted to the value (true, false) of the nth switch.
* ¥ss[n] : nis converted to the value (true, false) of the nth self switch.
* n -> A, B, C, D
*
* The situations where control characters can be used are as follows.
* -Text display
* -Notes field (*)
* -Plugin command (*)
* -Plugin parameter (*)
* -Explanation fields for skills, etc.
* *Only for plugins that take PluginCommonBase.js as a base.
*
* Below is an explanation for developers.
*
* Introducing this plugin as a base allows conversion of parameter types and control characters,
* when analyzing parameters or fetching plugin commands/note fields, to be automated.
* Standardizing control character allows conversion processing, and consistent
* control character conversion specs to be implemented in all subordinate plugins.
*
* -Plugin Parameter Type Analysis
* Automatically analyzes type and converts plugin parameters.
* Also automatically converts control characters when the parameter is fetched.
* Calls the following methods to fetch return values.
* Always specifies "document.currentScript" in the argument.
*
* PluginManagerEx.createParameter(document.currentScript);
*
* However, if the end of the parameter name (regardless of case)
* is one of the following values, the value will be returned as-is without control character or type conversion.
* text
* name
* note
* desc
* script
*
* -Plugin Command Parameter Type Analysis
* Automatically analyzes type and converts plugin command parameters.
* Also automatically converts control characters when the parameter is fetched.
* Uses the following in place of PluginManager.registerCommand.
* Always specifies "document.currentScript" in the argument.
*
* PluginManagerEx.registerCommand(document.currentScript, "command", args => {
* });
*
* -Notes Field Analysis
* Retrieves notes field information from specified objects.
* Automatically converts control characters.
* Multiple names can be specified.
*
* PluginManagerEx.findMetaValue(obj, tagName1, tagName2...);
*
* -Dynamic Common Event Execution
* Executions dynamic common events.
* Dynamic common events are stacked parallel processed common events.
* Use to execute as many common events with the same ID in parallel as you want.
* It can register as many common events as you want and automatically discards those that have been executed.
*
* $gameMap.setupDynamicCommon(commonEventId);
*