I'm designing a rpg/mud game with merchant NPCs and I want their prices to adjust dynamically based on supply & demand.
What I have already figured out:
- I don't need a complex, "realistic" system but just a simple multiplier based on some statistical data
- I want the algorithm to be resistant to abuse and low size of player population, so the multiplier propably should not be dynamically generated, but rather stored with other merchant data and updated once per a few days
- And thus the required statistical data should be low in volume - there will be many NPCs, each with its own item list, prices and statistics - so it can rapidly grow in size with development of game world.
The problem is: What type of formula would be the "best" for this kind of multiplier?
Disclaimers:
- This may seem related to Supply Demand Modeling but I dont' need a library, just some tips on how to do it myself.
- I am aware there may already be an economics model simulating this problem, but I never studied economics so I don't even know what I should look for.
- No, this is not a homework, but it propably sounds like one so I'm adding the tag :P