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
694
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

I've decided "Attack on Equestria" should be released first... hence this new ARG channel! https://www.youtube.com/channel/UClKiUI8xOVx9dsF4kRXUmxw
Check it out, and subscribe! The ARG will lead up to the video game. It's not a creepy game, but I just thought it should follow ARG standards.
For anyone interested in my project M - i finally made a gamethread about it :D

Yay. I turned 39 today. Another year older, another year closer to the grave.
I'm sure the latest post/thread in the sidebar used to have 5 posts. Was it always been like this?

Made it to the 10th video doing this! :kaocry:

renderTimingPixel.png

Forum statistics

Threads
110,407
Messages
1,053,065
Members
143,469
Latest member
ClementPanchout
Top