Hey there!
I'm currently building a game for research and one of the main premises is owning an item shop (quite like recettear, but more focused on education). I am just wondering if it's possible to have the player open their shop behind the desk and then have NPC's randomly come in with pre-determined (maybe randomly generated?) requests that the player needs to fulfil.
Thank you for any help!
I will leave this here for the time being, until it's established that you NEED a script to do this. I believe you could have a very basic system just using events, without scripts.
I think you should be more specific about it, cause there are tons of differents ways you could go about doing this.
I think you could do this as follows:
roll a random number, between 1 and x (x the number of NPC's you have to choose from).
Have that NPC enter the shop. You can do this easily by having the graphic for the NPC somewhere off-screen, then use the move event command to move them to the edge of the visible region, and then set the move route so they walk into the store (or, you could have them start on the other side of the door, take your pick).
Once NPC is done, have them leave.
It will be up to you how often the random number is rolled. Maybe you want it rolled 4 -5 times before the shop opens? Maybe you want to handle NPC's one at a time? Up to you!
Oh, my apologies if this does not require a script at all! I'm still figuring out the basics of RPG maker VX ace.
As for being more specific. The way I envisioned it is the player opens up their shop for business by going and sitting behind a desk. Once there, for a specified amount of time (or until a set amount of customers is reached), NPC's will come into the shop, walk up to the player, and ask them for a specific item (Such as "I have a weapon with 3 attack, what sharpening stone do I need to buy to have 5 attack in total?). The player answers correctly and the customer is happy, leaves, then the next customer comes in. As they upgrade their shop, the requests from customers will get more complex and use more advanced mathematics.
Thank you for the suggestion, Bgillisp!
You could do something like what Bgillisp said. You could also have hidden events off-screen, and have like a switch for which difficulty the shop is at and also another switch to check if the customer is talking, and do the random variable thing like Bgillisp said, and you would have a bunch of Conditional loops, which will then display different messages that you wish to display. This will also let you be able to make quick various events inside each Conditional Branch.
So like, for them being at the beginning stage. There will be a switch begginnersShop = on. Then, a customer will walk up, it will then turn switch customerSpeaks = on. Then, that will triger one of the hidden events(which we will call the easy one to easyDiolgue). You will have a variable be randomized between a set of numbers equal to the ammount of conditional branches you will have(lets say 10 for now). So the variable will randomize, and it will check what the variable is by going through each conditional branch, and display and do everything that you want to happen inside that branch. Then, at the end, customerSpeaks = off. Customer leaves.
To get the more difficult events to display, you will have to set begginersShop = off, and set one of the other switches to on(like advancedShop), once the player upgrades the shop.