Free Gift After Spending Money

Hey guys,


As the title says,I need your help with making event where,after spending "x" money,you will get free gift from seller.He will be happy because you bought many items and he will reward you(Event won't repeat).Can anyone help me?


p.s I'm first time on forum of this type 😛
You need to store the current party gold into a variable before accessing the shop, then do the same after the shop - the lost money is what as spent in the shop


Add that to another variable "spend gold", and check if that variable is higher than the count you want.


Needs a number of mathematics, but not a problem then.
@Andar has given you a really good solution that can be implemented with some intermediate eventing, which is great in that it doesn't require plugins.  Unless you're experienced in RPG Maker, I'd recommend using that.  There are a couple of hang-ups with the approach, most notably that it will count items you sold (in the same visit to the shop as things you bought) against you.  To get around those, you'd need to make/get plugins.
wellcome,newbie🙂 the opportunities are really great!

MrOsborne, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/free-gift-after-spending-money.73470/