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,444
Reaction score
687
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 Profile Posts

Moving day is on May 12! A month from today! I'm finally getting my own apartment!
I made the logo and title screen for my game (Still rough but at least it's got a design now)
Eyy1s2gXIAMzfFN
Eyy1s2hXMAEmiRA
BCj
Whelp, it's been a while. Had another retina surgery on april 1st on my left eye. Well, 4 time's the charm, right? *recovery mode on*
The next JABS update will include ally AI and an aggro system.

Question:
What would YOU expect to happen if you had four+ party members in an ABS, all fighting either together or separately or a mix of the two, and the player hits "swap leader" button?
It currently pulls all followers to the player's location, removes all aggro towards enemies, and swaps them.
Time to wear a new face again...

Should keep things interesting huh? @EpicFILE :p

Forum statistics

Threads
110,329
Messages
1,052,404
Members
143,376
Latest member
ivrit666
Top