Making a shop based game, need advice.

I want to make something similar to the game "Racettear" which I will include screenshots of at the bottom. The game allows you to go into a dungeon, gather things to sell, then go back to your shop and place said items in your shop to sell, NPC's will wander in, make requests, or ask to buy an item. You can haggle with NPC's and each NPC has a different haggle level difficulty.

I had a short look around for plugins but only really found reskins of the normal shop window. I'm fine with using plugins and not using them, but wanted to see if anyone has done this before, and how they went about it. The NPC's would need to be randomised,

So, to summarise:
Go out and gather items - Put items in your shop (either physically or in a menu) - NPC's ask for item - Haggle - Sell.

Most difficult thing I see here is randomising the NPC's, Randomising the dungeons/ dungeon loot, and the haggle system.

Spoiler: Images of Raccettear
header.jpg

ss_d86772db554e8df67db05df29b4292a724259a59.1920x1080.jpg

recettear-2010-09-12-11-20-47-26-article_image_jpg.png
You're going to have to break down each mechanic separately and show pictures or describe it instead of asking how to clone an entire game in one thread.
Most difficult thing I see here is randomising the NPC's, Randomising the dungeons/ dungeon loot,
Both of these are done by declaring an array of possible NPCs or dungeon loot, picking a random index from that array and then spawning it onto the map for the NPCs, or adding it to the player inventory for the dungeon loot.

I showed how to randomize loot in a chest in this thread
Welcome!

Just from my initial read of your post, I don't see anything there which necessarily needs any plugins.

I think you'd be best off choosing one part of it, trying to implement it via eventing, then asking for help if you get stuck.

Then you'd have a specific question and you'd have existing work to share screenshots of. Those things will let other people give you specific answers where you're stuck.

Through the process, you might some things that will be easier with plugins, but, for example, just randomizing NPCs is really easy. Give your event 10 pages with different images on them, give each page the condition of a variable at that value. Then use an event to set the variable to a random number between 1 and 10, and poof. No code or plugins needed.
Thank you both for taking the time to read my post.

You're going to have to break down each mechanic separately and show pictures or describe it instead of asking how to clone an entire game in one thread.

Both of these are done by declaring an array of possible NPCs or dungeon loot, picking a random index from that array and then spawning it onto the map for the NPCs, or adding it to the player inventory for the dungeon loot.

I showed how to randomize loot in a chest in this thread

I appreciate the link and the advice, I suppose the absolute crux of the game is the haggle system, being able to haggle with a customer. So perhaps that as a starting point would be good. A single NPC that when interacted with, will offer money, the player can request more, and there would be a probability calculator of sorts, if you ask for 10% more you have a 90% chance of success, if you ask for 100% more then you have a 10% chance of success, as an example.

Is that something that would be possible?

Welcome!

Just from my initial read of your post, I don't see anything there which necessarily needs any plugins.

I think you'd be best off choosing one part of it, trying to implement it via eventing, then asking for help if you get stuck.

Then you'd have a specific question and you'd have existing work to share screenshots of. Those things will let other people give you specific answers where you're stuck.

Through the process, you might some things that will be easier with plugins, but, for example, just randomizing NPCs is really easy. Give your event 10 pages with different images on them, give each page the condition of a variable at that value. Then use an event to set the variable to a random number between 1 and 10, and poof. No code or plugins needed.

Thank you for the advice, I will try your event page idea! I had not thought of using that as a method of implementing random NPCs! But could I ask you the same question I asked in this comment? Is there a way of having a type of probability calculator? with an NPC you are trying to sell to, if you ask for 10% more money you have a 90% chance of success, if you ask for 100% more then you have a 10% chance of success, as an example. I imagine manually entering each value accepted for every item would be very time-consuming, but if you are aware of have a universal calculator, then I would appreciate it.
A single NPC that when interacted with, will offer money, the player can request more, and there would be a probability calculator of sorts, if you ask for 10% more you have a 90% chance of success, if you ask for 100% more then you have a 10% chance of success, as an example.
Could you break down how you want this mechanic to work? How is the player inputting the value?

Generally speaking, you would take the player's input, multiply it by a randomly chosen decimal probability, then do an if statement to check if the product is above a numerical threshold, show the success message, else show the failure message.
But could I ask you the same question I asked in this comment? Is there a way of having a type of probability calculator?
One of the options on the first tab of the Control Variables command is to assign a random value.

So you make a variable with a random value from 1-10 (or 1-100, or whatever granularity you want) then use Conditional Branches to see which range it falls in ( >= 95, >= 80, >= 62, whatever).

Original thread: https://forums.rpgmakerweb.com/threads/making-a-shop-based-game-need-advice.171134/