- Joined
- Jun 10, 2019
- Messages
- 2
- Reaction score
- 1
- First Language
- English
- Primarily Uses
- RMVXA
Hello, I've been working on my first game in VX Ace and just slowly keep adding to and messing with stuff. Usually I've been able to find my answers by searching through the tons of information of dissecting scripts/old forum posts, but I feel a bit stumped on this one.
I want to have a shop where the player is limited in the number of purchases they can make at the shop.
So, I'm not worried about shop stock on individual items, but just the amount of times the player buys something. The idea behind this is that as the player unlocks more items at the shop, they can go back and stock up on special 1-use items, but can only bring 3 of them with them at a time (of any of the items sold from the shop). This limit would be stored in a variable that would reflect how many open slots the player has for these items. Such as, player has 2 items left and can buy just 1 more this trip, but maybe the next time they have 0 items and can make 3 purchases -- that would just all be in variables and conditional checks, but I don't know how to influence that in the shop processing.
Maybe I'm thinking about this the wrong way... But the best way I could think of was to find some way to limit the player's number of purchases based on a variable. However, searching around I wasn't able to find anyone trying to replicate this specifically. I thought of using a shop stock script, however the player may have a list of 10 items to choose from, so even if they all only have 1 stock, I'd need a way to close shop processing or trigger some event when they've hit their purchase limit.
Is this something feasible with eventing that I'm overlooking? Maybe there's a better way to approach this than I have thought of? Or maybe I'll have to try and dig into some scripting? Any thoughts, tips, opinions would be greatly appreciated. (or if more clarification is needed).
Thank you!
I want to have a shop where the player is limited in the number of purchases they can make at the shop.
So, I'm not worried about shop stock on individual items, but just the amount of times the player buys something. The idea behind this is that as the player unlocks more items at the shop, they can go back and stock up on special 1-use items, but can only bring 3 of them with them at a time (of any of the items sold from the shop). This limit would be stored in a variable that would reflect how many open slots the player has for these items. Such as, player has 2 items left and can buy just 1 more this trip, but maybe the next time they have 0 items and can make 3 purchases -- that would just all be in variables and conditional checks, but I don't know how to influence that in the shop processing.
Maybe I'm thinking about this the wrong way... But the best way I could think of was to find some way to limit the player's number of purchases based on a variable. However, searching around I wasn't able to find anyone trying to replicate this specifically. I thought of using a shop stock script, however the player may have a list of 10 items to choose from, so even if they all only have 1 stock, I'd need a way to close shop processing or trigger some event when they've hit their purchase limit.
Is this something feasible with eventing that I'm overlooking? Maybe there's a better way to approach this than I have thought of? Or maybe I'll have to try and dig into some scripting? Any thoughts, tips, opinions would be greatly appreciated. (or if more clarification is needed).
Thank you!


