MZ Contribute your useful PluginManager parameters

Simple at is Share your useful Plugin Parameters structure you imagined for other people to use!

here's mine :
Spoiler: Samples
// create a Point structure or a 'vector2' /*:~struct~vector2: * @param x * @desc the x axis * @type number * @default 1 * * @param y * @desc the y axis * @type number * @default 1 */ // Create the RGB structure /*~struct~rgb: * @param r * @text Red * @desc the red color * @type number * @min 0 * @max 255 * @default 0 * * @param g * @text Green * @desc the green color * @type number * @min 0 * @max 255 * @default 0 * * @param b * @text Blue * @desc the blue color * @type number * @min 0 * @max 255 * @default 0 */ // create an struct for sound /*:~struct~sound: * @param filename * @desc the audio filename * @type file * @dir audio/ * @default Default * * @param volume * @desc the sound volume * @type number * @max 100 * @min 0 * @default 90 * * @param pitch * @desc the sound pitch * @type number * @max 150 * @min 50 * @default 100 * * @param pan * @desc the sound pan * @type number * @max 100 * @min -100 * @default 0 */

don't mind to share!
first one:
selection plugin parameter
Code:
@param selectRace
@type select
@option "1"
@value "Human"
@option "2"
@value "Elf"
@option "3"
@value "Dwarf"
@option "4"
@value "Demon"
@desc

second one for advanced user...
making plugin user can define their own function...
Code:
@param phoneCustomFunction
@text Custom Function
@desc Custom function you can define to included inside the Phone Scene. can be called with this.yourFunction() later.
@type multiline_string[]
@parent advancedSettings
@default ["EST.PhoneMenu.picturesFeature = function(){\n  $gameVariables.setValue(2, 333);\n  alert(\"entering function pictures feature\");\n  if(this._phoneCommand) this._phoneCommand.activate();\n};","EST.PhoneMenu.callScene = function(sceneClass, page, index){\n $gameTemp._phoneLastIcon = index || 0;\n $gameTemp._phoneLastPage = page || 0; \n SceneManager.push(sceneClass);\n};","EST.PhoneMenu.whatEverFunction= function (id){\n  //do something here you want\n};"]
it will output like this in the editor


the function then added using this code
Code:
EST.PhoneMenu.Parameters.phoneCustomFunction = JSON.parse(EST.PhoneMenu.Parameters.phoneCustomFunction);
if(EST.PhoneMenu.Parameters.phoneCustomFunction){
    for (cmd of EST.PhoneMenu.Parameters.phoneCustomFunction){
        try{
          eval(cmd);
        }catch(e){
          console.log("phoneCustomFunction Error\nCheck Entry: "+cmd);
        }
    }; 
};

taken from my phone menu plugin.
hope this help 😀.

edit: this is for MZ though... since MV did not have multiline_string if i remember correctly...

edit2: did not read that this share plugin parameter structure >.<... sorry >.<
perfectly fine lmao! I like the function idea since it's allow to just eval the function right away

Original thread: https://forums.rpgmakerweb.com/threads/contribute-your-useful-pluginmanager-parameters.133871/