I wanted to know if it was possible to check if an item was bought from a Shop, whether through plugin or non-plugin code.
Check if an item is bought?
RPG Maker MV SupportYou could save your gold into a variable prior to the Shop Processing command and compare how much you have at the end. However, the variable would be different if you sold rather than bought (gold would be > what's in the variable), or if you sell an item for one price and buy another item for the same amount the gold would not be changed.
If you wanted to be absolutely certain, you'd need a plugin that would turn on a switch (which you specify as a plugin parameter) when the player buys an item.
If you wanted to be absolutely certain, you'd need a plugin that would turn on a switch (which you specify as a plugin parameter) when the player buys an item.
Check your inventory for the item before shop
and check it after the shop.
or use plugin for that
and check it after the shop.
or use plugin for that
Original thread: https://forums.rpgmakerweb.com/threads/check-if-an-item-is-bought.64796/