Welcome to PGMZ! My goal is to make it easy for everyone to find and share great plugins for creating amazing games. As a plugin developer myself, I'm excited to grow this community with all of you.
NUUN Random Items - NUUN_RandomItems.js
Plugin desc : Random get items and money
License : MIT License
Author : NUUN
Website : https://github.com/nuun888/MZ/blob/master/NUUN_RandomItems.js
Download Page : https://raw.githubusercontent.com/nuun888/MZ/master/NUUN_RandomItems.js
File name : NUUN_RandomItems.js
Help of plugin :
* @target MZ * @plugindesc Random get items and money * @author NUUN * @base NUUN_Base * @orderAfter NUUN_Base * @version 1.3.3 * * @help * Randomly obtain items and money. * Random item settings are set from the plugin command. * Items, weapons, armor, money, and common events can be set as random targets. * If a common event is set, the specified common event will be called upon acquisition. * The list ID, item name, icon index and weight of the acquired item can be assigned to variables. * Common events are assigned common event IDs instead of item names. Not assigned icon index. * Money is displayed by the amount obtained instead of the item name. Icon index is not assigned. * The conditional expression becomes a lottery target when the specified conditions are met. * Enter the evaluation expression (java script code) for the conditional expression. * * Message when item is acquired. * %1: Item name * %2: Item icon * Message when getting money * %1: money * %2: MoneyIconID * %3: currency unit * * If you are using a plugin that retrieves items or displays messages with plugin parameters, set the retrieval list ID variable and make various settings such as branch conditions. * * Terms of Use * This plugin is distributed under the MIT license. * * Log * 3/24/2023 Ver.1.3.3 * Fixed the problem that an error occurs with NUUN_Base Ver.1.6.4 or later. * 12/9/2022 Ver.1.3.2 * Added a function that can set a conditional expression for the random acquisition target. * 12/8/2022 Ver.1.3.1 * Changed the Type of icon specified plug-in parameter to icon. (Ver.1.6.0 or later) * 11/12/2022 Ver.1.3.0 * Change message format. * Changed the display in languages other than Japanese to English. * 4/4/2021 Ver.1.2.2 * Added a function to get the icon ID and store it in a variable when you get money in the plugin command. * 2/25/2021 Ver.1.2.1 * Fixed to update the map only once when assigning game variables. * 2/25/2021 Ver.1.2.0 * Added function to assign item name, icon index and weight to variables. * Fixed the problem that the list ID is not assigned to the variable when getting the item. * 12/15/2020 Ver.1.1.0 * ”MOG_TreasurePopup” supported. * 11/22/2020 Ver.1.0.0 * first edition. * * @command ItemList * @desc Specifies the item to get randomly. * @arg list * @text Random item * @type struct<randomList>[] * * @param GetTextMessage * @text Default message when getting * @desc Default message on fetch. * @type string * @default You got ¥i[%2]%1! * * @param GetGoldMessage * @text Default message when getting money * @desc Default message when getting money. * @type string * @default Got %1%3! * * @param GetItemMessage * @desc Show message window when fetching. * @text Message window display * @type boolean * @default true * * @param CommonListIdVar * @desc A variable that stores the list ID when retrieving. * @text Acquisition list ID variableId * @type variable * @default 0 * * @param ItemNameVar * @desc A variable that stores the retrieved item name. * @text Acquisition item name variableId * @type variable * @default 0 * * @param ItemIconIDVar * @desc A variable that stores the icon ID of the acquired item. * @text Acquisition item icon ID variableId * @type variable * @default 0 * * @param WeightVar * @desc A variable that stores the weight of the acquired item. * @text Acquisition item weight variableId * @type variable * @default 0 *