This script adds a “stock” count to each shop good.
Once a shop good’s stock reaches 0, it will no longer be available in the shop.
The stock is set up for individual shops. One shop’s stock does not affect another shop’s stock. The stock is only setup once: if you leave and come back, the stock remains the same
In your event, before the Shop Processing command, use the following script call. If you don’t set a stock count, then it is assumed to be unlimited.
@shop_stock[id] = amount
Using the Shop Manager, the shop stocks are setup for each individual shop
So let’s say the player bought 6 potions. The picture doesn’t show it, but the player actually left the shop, went to explore a dungeon, and then came back to buy more potions. Unfortunately, we have limited potions in stock…
And once you buy up all the potions, that’s it.