An open library of RPG Maker MZ plugins, powered by the community.

PGMZ - The Community-Driven Plugin Library for RPG Maker MZ

MZ plugins

Dark Plasma Random Gain Item - DarkPlasma_RandomGainItem.js

Plugin desc : Get a random item

License : MIT License

Author : DarkPlasma

Website : https://github.com/munokura/DarkPlasma-MZ-Plugins/blob/main/DarkPlasma_RandomGainItem.js

Desc page : https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release

Download Page : https://raw.githubusercontent.com/munokura/DarkPlasma-MZ-Plugins/main/DarkPlasma_RandomGainItem.js

File name : DarkPlasma_RandomGainItem.js

Help of plugin :

@target MZ
@url https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release
@plugindesc Get a random item
@author DarkPlasma
@license MIT

@help
English Help Translator: munokura
This is an unofficial English translation of the plugin help,
created to support global RPG Maker users.
Feedback is welcome to improve translation quality
(see: https://github.com/munokura/DarkPlasma-MZ-Plugins ).
Original plugin by DarkPlasma.
Please check the latest official version at:
https://github.com/elleonard/DarkPlasma-MZ-Plugins/tree/release
-----

version: 1.0.0
Provides a plugin command to obtain random items.

@command randomGainItem
@text Get a random item
@arg items
@text Lottery items
@type struct<RandomItem>[]

@arg weapons
@text Weapons eligible for the lottery
@type struct<RandomWeapon>[]

@arg armors
@text Lottery-eligible protective gear
@type struct<RandomArmor>[]

@arg nameVariable
@text Name Variable
@desc Assigns the name of the obtained item to the specified variable.
@type variable

スポンサードリンク

-MZ plugins

Copyright© PGMZ - The Community-Driven Plugin Library for RPG Maker MZ , 2026 All Rights Reserved.