🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

economics in games

Started by
6 comments, last by capn_midnight 23 years, 8 months ago
How about a reallistic economy system in a game (say, an RPG). Based on supply and demand of items and supply and demand of currency, you could come up with something that would vary the price of items (inflation and deflation) accordingly. Say you start hording money for some big item. If you take a significant amount of money off the market, then the government might have to print more so that normal buisness can continue. But then, when you go and spend spend spend, you''ll be dumping all this money back into the market and this will cause prices to go up. I''ll explain more later, I have a class to get to right now, so I can''t type much longer. If you want to see my code so far (pretty basic), just email me at capn_midnight@gdnmail.net Bowowow yipeeyo yipeeyay

[Formerly "capn_midnight". See some of my projects. Find me on twitter tumblr G+ Github.]

Advertisement
It''s a neat idea, but what do you do for balance? I''d think you''d have to consider __ALL__ the possible states of your system, be it economic, ecological, or whatever. Then you have to answer the question of whether or not all states are fun. Is it fun to be in the midst of a Great Depression? (It *could* be, but you''d need to figure out how)

I think a lot of this sort of stuff gets fudged so that you can guarantee what type of experience the player is having. Ultima Online really had this problem in the beginning with their dynamic ecology. Players were supposed to be able to affect the economy and balance of monsters (for instance, if they hunted the dragon''s food the dragon would terrorize the town). But what they got was a pretty lame effect of inflation and vastly vacant monster spawning grounds. It''s a tough problem.

--------------------
Just waiting for the mothership...
--------------------Just waiting for the mothership...
I was tossing around ideas for this also. Now, bear with me, this is very simple-minded, and really only useful if you want fairly simple code.

Basically, upon server creation, a set amount of money is made. This all depends on how many players are allowed into the game max. Also, you could scale the amount of available money up as people join. With a set amount of money, bartering becomes more evident, which I always liked.

This system could create one problem, as each person isn''t limited to the amount of money they can have, but the world is limited. Basically, hoarding comes into play. To counteract this, invoke taxes. Quite simply, scale them higher as they get richer.

It could cause problems, but it''s SOMETHING.
If you were to accomplish this I would be extremely impressed. It has been tried before. So keep up the good work.
If your interested here is a good link that explains some of the complexities the designers faced with the creation of the UO economic system, this shows what the original design was and what it was transformed into.


UO ECON SYS



Dave "Dak Lozar"Loeser
Dave Dak Lozar Loeser
"Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning."--anonymous
The basic idea I have is that each item will have a certain value to them, a basic percentage that indicates it''s worth in the entire economy. I don''t think I will make this a variable, instead, I think it should stay constant. This value is not the actual price, not yet at least. The higher the value, the higher the price. Next, there is a certain supply of each item, but right now I have no idea how I will manage this aspect. The supply of each item IS a variable, it should go down when people buy things, and it should go up when things are made (time based?). Maybe I will have a function that will increase supply based on demand (sorry, still trying to figure this out). As supply goes up, price goes down (in an attempt to increase demand for the item and sell more of it). Next, each item has a demand value. I think I will manage this randomly if the game stays single-player, randomly simulating different transactions over the course of the game, with a bell curve across the value of items (mid value items get most demand, high and low value get least). If the game somehow goes MMO (I don''t know how it would do that, it wouldn''t happen as any fault of mine, hehe), then the demand values could be an accurate representation of the demand. Higher demand means higher prices as people compete over who gets the limited supply of items. This ends the attributes that are item specific. Now, we have total money (all the money in the world) and money supply (all the money in circulation, very different from total money), and money demand. Money supply would change from people hording money and taking it out of circulation or the "government" printing money. More supply means higher prices because there is more money to go around for each item. Money demand would be the sum of all the money needed to satisfy all the demand for each item. Money demand would not affect prices directly, instead it would affect the supply of money in circulation. If money demand outstrips money supply, then more money would need to be created, increasing the total money. If the insufficient availability of funds was due to one or a few people holding the money out of circulation, then when they do put the money back on the market this will increase the money supply, devalue the currency, and make prices go up (because there is more money to go around for each item). This would be inflation. I''m not sure about deflation yet. I think that if a significant amount of money is not used in a certain amount of time, then the total money would decrease...somehow.
Okay, summary:
Item value- a percentage value that each item has, commanding a certain amount of money based on supply and demand.
Item supply- a value that represents how much of each item there is to sell. Lower supply means higher prices because there is less of each item to go around, and people will compete for the limited supply. higher supply means lower prices for just the opposite reason, there is too much of each item and the prices need to be lowered in order to make people want to buy each item.
Item demand- a value that represents how much people want each item. Higer demand means higher prices, lower demand means lower prices, for much the same reasons as with supply.

Total Money- the total money in the world, increasing over time (generally) to meet the demand. higher total money would not necessarily affect prices.
Money Supply- all the money currently in use and available for any transaction. If one player has a lot of money, then that money is out of circulation and cannot be used by other players for their transactions. An increase in money supply will mean an increase in prices because there is more money to be spent on the same amount of items.
Money Demand- all the money needed to satisfy all the item demand. This will not directly affect prices, but if the demand outstrips the supply, more money will need to be added to the total. Money cannot be directly added to the supply without item supply being reduced.

So now, we should be able to come up with a function describing all this...let me think for a minute
price=(item value*item demand*money supply)/item supply)
item value=constant, preset
item demand=variable, based on player transactions (how that will be done, look under a rock for a better answer than the one I got)
item supply=variable, based on item demand
money supply=variable, based on transactions made

And this isn''t even getting into taxes and on what the tax money will be spent.
sorry, that was me.

[Formerly "capn_midnight". See some of my projects. Find me on twitter tumblr G+ Github.]

but what about credit cards and counterfeiting? These basically make money from nowhere. THere is some difference between the two, ones legal, the other isn''t, ones temporary, the other isn''t. Would you just treat credit cards like normal cash as there limit (basically a money purse)? But this would make it so that as soon as you got the card the money supply would increase. Or would you make it something different that was seperate from the system? THe money in credit cards doesn''t exist until you use the card, so if there are cards there is no increase in money supply until you buy something. And if you pay back your debt, that money dissapears out of the money supply. And this is all temporary and might take place to quickly to really make a difference in the market. But if we just let it make money and destroy it left and right, then that could make prices fluctuate wildly for no real reason at all.

[Formerly "capn_midnight". See some of my projects. Find me on twitter tumblr G+ Github.]

This topic is closed to new replies.

Advertisement