- Joined
- Jul 21, 2019
- Messages
- 100
- Reaction score
- 23
- First Language
- English
- Primarily Uses
- RMMV
Hi there! I'm looking for a way to count how many of an item a player purchases over time, but not have that count get reduced if they use or sell that item.
A quest requires the player to buy 3 healing potions. The current way I am counting it is by having a script that checks how many of the item a player has after they exit the shop that sells them and save that number to a variable. But that's not really ideal when if some of those items get used before they purchase more. For example, if the player buys 1 potion and leaves, the script will count 1. But if they use that potion, and then come back and buy 2 more, the variable will only have a count of 2, when I'd prefer it to have a count of 3.
Any ideas how I could script this?
A quest requires the player to buy 3 healing potions. The current way I am counting it is by having a script that checks how many of the item a player has after they exit the shop that sells them and save that number to a variable. But that's not really ideal when if some of those items get used before they purchase more. For example, if the player buys 1 potion and leaves, the script will count 1. But if they use that potion, and then come back and buy 2 more, the variable will only have a count of 2, when I'd prefer it to have a count of 3.
Any ideas how I could script this?

