So I wanted to create global stocks for items so that I can add items to shops that the player can't buy infinitely. Unfortunately there is no simple way to do this in RMMV, so I decided to write a plugin for it.
Free for Commercial and Non-commercial use.
Credit Makai Rosi in your credits.
Place it after any plugins that change the shop scene/window. (Place it at the end of your plugins if you're unsure)
The help section inside really contains any info one could possibly need, but if you have any questions, suggestions, comments or bug reports, please post here or dm me.
What can you do with it? Simply, you can setup an item to have limited availability globally, by a number, a variable or even code! Once the item has been bought the maximum number of times, you can remove it completely from shops, or just show a message implying it's out of stock via the parameters. You can also show the player the maximum number of times they can buy that item.
I might work on a version to also have a message saying "limited stock" for such items.
Note: This only works for *items* - not weapons or armors.
I have tested this with Yanfly's Core Engine, Shop Menu Core, Item Core and More Currencies plugins and found no issues.
I have also included a section of potential uses which I will copy paste here:
Buy limited crafting materials and replenish shops per x days
Upgrade your house/base
Buy unique items (like a book, a famous jewel or an item for a quest)
Buy powerful powerups and replenish shops per milestone
Setup a season or period during which certain items are out of stock
Add stock when the player clears an area (for example a sawmill)
Etc.
Note: This was created for simple shop menus, but it will probably have no issues for more complex ones. However, if it does have issues, feel free to edit (but credit me as the original author).