Shop AI?

I'd like to make it so I can have people come in to the shop and order random things, I'd like the people to be random as well, but I'm not sure how to go about this.


Is it too complicated? Should I give up? :stare: Thank you !


**


I'd like to make a shop simulation game, if anyone has any advice for me I'd appreciate it! Thanks
ERM xD...I am unsure what you mean...although I have a Dynamic Shopkeeper plugin in work
I would like to make a game where customers come in to buy things, just kinda like: (random generated customer(?)) comes to buy (random generated item in shop)!


I'd imagine the customer's graphic and the item would be chosen from a file or something with that name to make it a bit easier.


But I'm unsure how to script it, any ideas is helpful. I have been looking for plugins or anything
ahhhhhh I see random customer...


it's kinda weird it's could be done via event though 
Can you link me to something or tell me how I'd do it?


Everyone I've asked has said its super complicated, so I'm a bit cautious.
Here is a simple example, if you are the shopkeeper. 


Have an event walk up to you, then a variable randomly generated between 1 and 10. Each corresponds to an item, a statement and a monetary offer. The event essentially has a chance of asking you about a certain item and giving you an offer for it, and you can sell it to them if you own it.


If you wish for them to try to purchase multiple items, you can add this into a loop, which runs until another condition is met. 


You can then expand on this and have the random number regenerate if the person has already asked about that specific number, so they don't keep asking about the same thing over and over.


Have fun!

Original thread: https://forums.rpgmakerweb.com/threads/shop-ai.57467/