The Forum RPG is released for play testing

Viewing single post

Started by Legend, Jan 05, 2016, 07:37 PM

previous topic - next topic

Legend

And with shops, I set up a cool (imo) system with prices.

Shops will naturally raise and lower prices as the persistent world evolves and changes. IE items with low inventory will usually be priced a bit higher than average.


However it'd be really lame for a player to load the shop only for the prices to be outdated within seconds. Thus all prices are honored for 10 minutes after loading. Refreshing or changing the page updates the prices and stock, but just clicking 'BUY NOW' does not. IE player loads the shop, player sees bread for $10, shop owner raises price to $20, player still thinks it's $10, player buys bread and shop honors the original $10 price. However if the current price is lower than when the page is loaded, then the player gets the updated price.