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

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

MZ plugins

PANDA Steal Item - PANDA_StealItem.js

Plugin desc : implement the skill "Steal" items from enemy characters.

License : MIT License

Author : panda(werepanda.jp)

Website : https://www.werepanda.jp/

Desc page : http://www.werepanda.jp/blog/20230316222814.html

File name : PANDA_StealItem.js

Help of plugin :

* @target MV MZ
 * @plugindesc implement the skill "Steal" items from enemy characters.
 * @author panda(werepanda.jp)
 * @url http://www.werepanda.jp/blog/20230316222814.html
 * 
 * @help This plug-in allows you to implement the skill of "Steal" items
 * from enemy characters.
 * It doesn't support that the enemy steals the player's items.
 * 
 * At first, create a dummy state to indicate "Steal" was successful.
 * Because it is a dummy state, there is no need to settings or messages.
 * Specify this state in the plug-in parameter of "Steal Success State".
 * 
 * Next, create a "Steal" skill.
 * Specify the "Steal Success State" in [Add State] in the [Effects].
 * The success rate of "Steal" can be adjusted with the rate of this state.
 * For each enemy character, you can also adjust the success rate
 * with [State Rate] in [Traits].
 * 
 * Items that can be stolen follow [Drop Items] settings of enemies.
 * You can specify the stolen items in detail with "Stolen Item Type"
 * in the plug-in parameter.
 * If you specify "Depends on Drop Items Probability", it will be determined
 * according to the probability of multiple drop items.
 * 
 * If you turn on the plug-in parameter "Whether can steal again",
 * players can steal from the same enemy many times.
 * When turned off, players can only steal from the same enemy once,
 * and they will not drop items when defeated.
 * 
 * You can specify the following messages and animations
 * in the plug-in parameters.
 *  - When "Steal" succeeded
 *  - When "Steal" failed
 *  - When the enemy does not any items to steal
 *  - When players have already stolen an item from the enemy
 * The two below are judged with priority over the success judgement.
 * 
 * [License]
 * this plugin is released under MIT license.
 * https://opensource.org/licenses/mit-license.php
 * 
 * @param StolenStateID
 * @text Steal Success State
 * @desc Specify the state to be applied to the enemy when "Steal" succeeds.
 * @type state
 * @default 
 * 
 * @param StealItemType
 * @text Stolen Item Type
 * @desc Specify the target of the item which can be stolen.
 * @default 0
 * @type select
 * @option Depends on Drop Items Probability
 * @value 0
 * @option Drop Item 1 only
 * @value 1
 * @option Drop Item 2 only
 * @value 2
 * @option Drop Item 3 only
 * @value 3
 * 
 * @param AllowStealAgain
 * @text Whether can steal again
 * @desc If ON, can steal from the same enemy many times. OFF, can not steal from enemies who stole it once, and not drop it.
 * @type boolean
 * @default false
 * 
 * @param StealSuccessMessage
 * @text Steal Success Message
 * @desc Message when "Steal" succeeded. %1 = Actor character name, %2 = Enemy character name, %3 = Item name
 * @type text
 * @default %1 stole %3 from %2!
 * 
 * @param StealFailureMessage
 * @text Steal Failure Message
 * @desc Message when "Steal" failed. %1 = Actor character name, %2 = Enemy character name
 * @type text
 * @default But %1 couldn't steal from %2!
 * 
 * @param NoItemMessage
 * @text No Item Message
 * @desc Message when the enemy does not have any items to steal. %1 = Actor character name, %2 = Enemy character name
 * @type text
 * @default But %2 had nothing!
 * 
 * @param AlreadyStolenMessage
 * @text Already Stolen Message
 * @desc Message when players have already stolen an item. %1 = Actor character name, %2 = Enemy character name
 * @type text
 * @default %2 didn't have any more!
 * 
 * @param StealSuccessAnimation
 * @text Steal Success Animation
 * @desc Animation when "Steal" succeeded.
 * @type animation
 * @default 
 * 
 * @param StealFailureAnimation
 * @text Steal Failure Animation
 * @desc Animation when "Steal" failed.
 * @type animation
 * @default 
 * 
 * @param NoItemAnimation
 * @text No Item Animation
 * @desc Animation when the enemy does not have any items to steal.
 * @type animation
 * @default 
 * 
 * @param AlreadyStolenAnimation
 * @text Already Stolen Animation
 * @desc Animation when players have already stolen an item.
 * @type animation
 * @default 
 *

スポンサードリンク

-MZ plugins

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