I would assume Dave has some good ideas around how to implement this in a video game.
Certainly... but I read more books on economics, psychology, and math than I do on games. *shrug*
In the real world price dynamics emerge because people are agreeing on prices before anything actually changes hands. In other words, oil is sold before it's even pumped from the ground. When you are told that 'the price of oil is $xxx a barrel' what you're getting is an estimate based on contractual agreements for a future delivery. Think of it as an auction for something that might not actually exist.
In terms of a video game: If you have shop keepers, you might want to keep a global commodities index running, and have the shop keeper essentially act as a broker that gets him/her a premium (a function of the index price * volatility/risk * profit expectation). If you assigned production of certain regions of the world, and adjust output/cost based on how much combat (or other type of events) occures in those areas then you provide a way for player dynamics to indirectly affect global prices.
That's a great point. People in the real world bitch about how gas prices at the pump increase immediately when the price of oil increases. "But you didn't pay that much for this gasoline! How come you won't sell it at the price you paid for it?" The simple answer is, "because I need to be able to afford to buy more to replace it."
Therefore, in the shopkeeper example, you should not use of what the shopkeeper paid for it. You need to calculate what he would have to pay for it if he wanted to replace his supply. Doing it the other way punishes him for buying a huge inventory when the price is low... which is economics rule #1 (#2 being "sell high").
However, there is a reason to keep track of what the shopkeeper paid... and that is that he may not want to sell at a certain price. For example, if he has an inventory of A, and the price of A drops below what he paid (in cost, effort, etc.) he may find it beneficial to sit on his inventory and hope the price goes back up. Why sell at a loss? (Of course, then you get into a classic situation where the price continues to drop and he must decide to cut his losses by selling... but that's why economics is so much fun!)