A shop that increases its prices the more you buy an item.

I'm trying to get a shop that as you purchase an item it increase how much the next cost will be. The one way I've got it slightly working is the shop to check how many of an item a player has and increase the value using yanflys conditional shop prices but that only affects it when they close the shop and re open it. Im wondering if theres a way to trigger that price in crease while theyre still in the same shop menu. Thanks in advance.
Okay, so that has to trigger when they buy the item, so that's going to be a script.
Im wondering if theres a way to trigger that price in crease while theyre still in the same shop menu. Thanks in advance.
Like pawsplay said, you'll likely need a script/plugin to overwrite the shop processing function and insert a command to increase the price of the item that was just bought, then refresh the prices.

Original thread: https://forums.rpgmakerweb.com/threads/a-shop-that-increases-its-prices-the-more-you-buy-an-item.159151/