Timeline for How would a player character pay for an item that costs less than 1cp?
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 15, 2019 at 16:05 | comment | added | pjc50 | FWIW, the real world analogue to this is electronics catalogues; these resistors have a unit price of "£0.00097" digikey.co.uk/product-detail/en/stackpole-electronics-inc/… (but a minimum order quantity of a tape of 10,000) | |
Feb 15, 2019 at 15:40 | comment | added | ocket8888 | I think you misunderstand though. I'm not making any kind of 'app' - I'm just making a database that 'apps' could be built upon. So sure, maybe a store would work like that, but suppose a player buys 20 sling bullets and fires one, then later asks some 'app' built on top of my db how much his inventory is worth in total? He's right, a sensible database would be capable of providing the information to answer that, without special handling code required after data retrieval. | |
Feb 15, 2019 at 11:13 | comment | added | VLAZ | "all kinds of handling code for items with quantities (what if a player wants to buy 24?)." any serious store application I've seen handles that by restricting what the user can enter. You can't enter 24 because that's not an option. You can buy 20 or 25. Or perhaps 4 or 5 "units" (however they are described) and each is worth 5. You can also have various sizes of units - a small pack might be 5, a big could be 50. Or round in terms of 10s, if you wish - small pack of 10 bullets is 2cp. Check out Amazon or eBay for something sold in packs of 3 or 10 or whatever, if you want an example. | |
Feb 15, 2019 at 9:19 | history | answered | Tom | CC BY-SA 4.0 |