Introduction
Allows restricting which items specific shops can buy from the player.
Features
Works on a per-shop basis.
Allow specific items or items of certain types.
Allow all items with a specific notetag.
RMMV/RMMZ compatible.
How to Use
Download the plugin and put it in your project's js/plugins folder. Then add it to the list of plugins from the plugin manager. Once installed, allows the use of the plugin command "buy_only"/"Buy only these items", which will affect the next "Shop Processing" call in the current event. It will not have an effect on any other events.
Plugin Command: Buy only these items
Affects the next shop in the current event. That shop will only be able to buy the items and item types listed in the plugin command from the player, no other items.
Takes one argument, which describes which items to allow. This argument has a set of lists:
Specific weapon IDs to allow is a list of weapons. Uses RPG Maker MZ's built-in weapon picker.
Weapon types to allow is a list of weapon type IDs. This is the number next to the weapon type in the "Types" tab of the database.
Specific armour IDs to allow is a list of armours. Uses RPG Maker MZ's built-in armour picker.
Armour types to allow is a list of armour type IDs. This is the number next to the armour type in the "Types" tab of the database.
Equipment types to allow is a list of equipment type IDs. This is the number next to the equipment type in the "Types" tab of the database.
Specific item IDs to allow is a list of items. Uses RPG Maker MZ's built-in item picker.
Notetags to allow is a list of notetags, e.g. add "glorp" to allow all items with "<glorp>" in their notes to be sold at the shop.
RPG Maker MV plugin command: see the plugin file's help, RPG Maker MV and MZ are very different here.
Terms and Credits
This plugin is released under the MIT license - it can be freely used in any project. Credit is not necessary, but if you want to, credit me as "Logan Pickup".