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

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

MZ plugins

Item Use Command - ItemUseCommand.js

Plugin desc : Item Use Command Plugin

License : MIT License

Author : Triacontane

Website : https://triacontane.blogspot.com

Desc page : https://github.com/triacontane/RPGMakerMV/tree/mz_master/ItemUseCommand.js

Download Page : https://raw.githubusercontent.com/munokura/triacontane-MZ-plugins/refs/heads/main/ItemUseCommand.js

File name : ItemUseCommand.js

Help of plugin :

@target MZ
@url https://github.com/triacontane/RPGMakerMV/tree/mz_master/ItemUseCommand.js
@plugindesc Item Use Command Plugin
@author Triacontane
@license MIT License

@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/triacontane-MZ-plugins ).
Original plugin by Triacontane.
Please check the latest official version at:
https://triacontane.blogspot.com
-----

ItemUseCommand.js

Provides a command to use the item or skill with the specified ID.
After executing the command, items and costs will be consumed as necessary.
The command cannot be used unless certain conditions are met.
Please execute it from the plugin command.

Only items usable on the menu screen are affected; combat items cannot be
used. Enemy characters are not affected.

Terms of Use:
You may modify and redistribute this without permission from the author, and
there are no restrictions on its use (commercial, 18+, etc.).
This plugin is now yours.

@param unusableSwitch
@text Disabled Trigger
@desc This switch turns ON when an item cannot be used.
@type switch
@default 0

@param playSe
@text Sound effects performance
@desc Plays a sound effect when an item is used.
@type boolean
@default true

@command ITEM_USE
@text Item Use
@desc Uses an item on the specified target.
@arg itemId
@text Item ID
@desc The ID of the item to use.
@type item
@default 1
@arg itemIdVariable
@text Item ID (obtained from a variable)
@desc Specify this if you want to obtain the ID of the item to be used from a variable value.
@type variable
@default 0
@arg targetIndex
@text Use for
@desc The index (sort order) of the target of the item. 1 is the first. There is no need to specify this for items that affect all allies.
@type number
@default 1
@arg targetActor
@text Target of use (direct specification)
@desc Select this if you want to specify the target of the item directly from the actor. It will be ignored if the actor is not in the party.
@type actor
@default 0

@command SKILL_USE
@text Skill Use
@desc Uses a skill on the specified target.
@arg skillId
@text Skill ID
@desc The ID of the skill to use.
@type skill
@default 1
@arg skillIdVariable
@text Skill ID (obtained from a variable)
@desc Specify this if you want to obtain the skill ID to use from a variable value.
@type variable
@default 0
@arg targetIndex
@text Use for
@desc The index (sort order) of the skill’s target. 1 is the first. There is no need to specify this for skills that affect all allies.
@type number
@default 1
@arg targetActor
@text Target of use (direct specification)
@desc Select this if you want to specify the target of the skill directly from the actor. It will be ignored if the actor is not in the party.
@type actor
@default 0
@arg userIndex
@text user
@desc The index (sort order) of the skill user. 1 is the first. There is no need to specify this for skills that affect all allies.
@type number
@default 1
@arg userActor
@text User (directly specified)
@desc Select this if you want to specify the skill user directly from the actor. It will be ignored if the actor is not in the party.
@type actor
@default 0

スポンサードリンク

-MZ plugins

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