Free Gift After Spending Money

Status
Not open for further replies.

bokismoki

Warper
Member
Joined
Feb 14, 2016
Messages
1
Reaction score
0
First Language
Serbian
Primarily Uses
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 :p
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
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.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,635
Reaction score
5,116
First Language
English
Primarily Uses
RMVXA
@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.
 

MrOsborne

Warper
Member
Joined
May 5, 2020
Messages
2
Reaction score
0
First Language
English
Primarily Uses
VNM
wellcome,newbie:) the opportunities are really great!
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,867
Reaction score
5,240
First Language
Dutch
Primarily Uses
RMXP

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.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,551
Members
137,837
Latest member
Dabi
Top