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 Trade Common - ItemTradeCommon.js

Plugin desc : Item buying and selling common call plugin

License : MIT License

Author : Triacontane

Website : https://triacontane.blogspot.com

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

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

File name : ItemTradeCommon.js

Help of plugin :

@target MZ
@url https://github.com/triacontane/RPGMakerMV/tree/mz_master/ItemTradeCommon.js
@plugindesc Item buying and selling common call 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
-----

ItemTradeCommon.js

When you buy or sell an item at a shop and return to the map, the item ID and
quantity are stored in the specified variables and a common event is called.
If multiple trades are made, the common event will be called each time.

This plugin requires the base plugin ”PluginCommonBase.js.”
”PluginCommonBase.js” is located in the following folder
in the RPG Maker MZ installation folder:
dlc/BasicResources/plugins/official

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

@param tradeItemCommon
@text Common Event ID
@desc This is a common event that is called when an item is bought or sold.
@type common_event
@default 0

@param kindVariable
@text Buy/Sell type variable
@desc This variable stores the type of item bought or sold (item: 1, weapon: 2, armor: 3) when calling Common.
@type variable
@default 0

@param itemIdVariable
@text Purchase and sale item ID variable
@desc This variable stores the ID of the item, weapon, or armor bought or sold when calling Common.
@type variable
@default 0

@param amountVariable
@text Variable for number of items sold
@desc This variable stores the number of items, weapons, and armor sold when calling Common. A negative value is set when selling.
@type variable
@default 0

@param priceVariable
@text Buy/Sell Item Price Variables
@desc This variable stores the price (unit price) of the item, weapon, or armor bought or sold when calling Common. A negative value is set when selling.
@type variable
@default 0

スポンサードリンク

-MZ plugins

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