RMMZ Contribute your useful PluginManager parameters

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,965
Reaction score
3,068
First Language
French
Primarily Uses
RMMV
Simple at is Share your useful Plugin Parameters structure you imagined for other people to use!

here's mine :
// 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!
 
Last edited:

estriole

Veteran
Veteran
Joined
Jun 27, 2012
Messages
1,448
Reaction score
697
First Language
indonesian
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 :D.

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 >.<
 
Last edited:

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,965
Reaction score
3,068
First Language
French
Primarily Uses
RMMV
perfectly fine lmao! I like the function idea since it's allow to just eval the function right away
 

Latest Threads

Latest Posts

Latest Profile Posts

Another character battle theme
Sorry everyone. Covid rules made me a laptop potatoe and I would need more exercise and past 2nd invasion I am still fighting for space also here. So I am not enough often here and... well I answer even less to my e-mails. DC is saying a huge HI to everyone with her heavy wet purrings.

You all take care in here ^^
traficaccidence.jpg
"It's time to add cars into the city!"
--- Famous last word of the developer's character before hit by a car :kaoswt2:
Yay, our new game, Causality is finally released on Steam!

Forum statistics

Threads
110,489
Messages
1,053,685
Members
143,582
Latest member
beru
Top