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

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

MZ plugins

MNKR Get Item Id - MNKR_GetItemId.js

Plugin desc : When an item is used, the item ID is assigned to the specified variable. You can create events that start when an item is used.

License : MIT License

Author : munokura

Website : http://x.com/munokura

Desc page : https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_GetItemId.js

File name : MNKR_GetItemId.js

Help of plugin :

@target MZ MV
@url https://raw.githubusercontent.com/munokura/MNKR-MZ-plugins/master/MNKR_GetItemId.js
@plugindesc When an item is used, the item ID is assigned to the specified variable. You can create events that start when an item is used.
@author munokura
@license MIT License

@help
When an item is used, the item ID is assigned to the specified variable.
When an item without a specified tag is used, 0 is assigned.
When an item scene is canceled, 0 is also assigned.

By using this as an event condition or conditional branch,
you can create events that start when an item is used.

How to Use
Enter the following tag in the memo field of the item you want to use.
<MNKR_GetItemId>

# Terms of Use
MIT License.
http://opensource.org/licenses/mit-license.php
You may modify and redistribute this without permission, and there are no
restrictions on its use (commercial, R18, etc.).

@param itemIdVariables
@text Item ID substitution variable
@desc This is the variable to which the ID will be assigned when the tagged item is used.
@type variable
@default 0

スポンサードリンク

-MZ plugins

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