There is an NPC in my game who you can talk to, to earn the amount of money you need to total 1,000 gold.
For example, if you play the game and have 300 gold, you fight the NPC and win, you will have 700 gold added to what you already have.
But how would you do this? To be more precise, how do you use constants and variables to define 1000 subtract what you already have is equal what should be gained?
Thanks in advance.
Edit: Never mind, i have solved it.
JFYI: You'll want to create a conditional branch (events) or if statement (rgss) to make it so that if 1000 - current_gold = 0 or a neg. number, ie. You already have 1000+ gold, it give you 0 gold. So that it wont add a negative number to how much gold you have ie. wont bring it down to 1000.