RMMZ Contribute your useful PluginManager parameters

nio kasgami

VampCat
Veteran
Joined
May 21, 2013
Messages
8,965
Reaction score
3,072
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,487
Reaction score
721
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,072
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 realized that I don't talk about my game's plot too much. not that I'm hiding stuff, I just don't know what I should tell people in general that would be important. I know more so what plot points NOT to tell.
Have any of you read Sutter Kane?
jaynightwolf wrote on GalacticGod's profile.
hello GALACTICGOD I loved your characters especially the super heroes, I am new to this rpg program and I would like to know if you have more characters from DC comics, be they villains or heroes
My winter pack is now free on itch.io!
Writing music for Utara Forest, a location in All the King's Men. Nothing evokes a mysterious, dreamy sound like solo clarinet and modulation!

Forum statistics

Threads
111,470
Messages
1,061,343
Members
144,846
Latest member
mellissap
Top