Good morning! A little question about money:) In one of my projects I want to have three currency types: Gold, silver and copper. I'm wondering how to make the exchange rate: 100 copper = 1 silver, 100 silver = 1 gold. As for item prices, I'm guessing I'd maybe have to use a formula for the price? I'm not too sure. :/ Thanks!!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
The docs say: So I *think* that I need to setup rates like:
Gold: 1
Silver: 10
Copper: 100
Platinum: 0.01
In order to have 100 copper = 10 silver = 1 gold and have 1 platinum = 100 gold.
Then is it right item prices are in Gold (first currency) so to have something worth 5 copper I need to set the value to 0.05 ?
It does seem like it would be simpler (not needing to work with small floats) if it was the other way around, but the way the Currency A / B reads seems like the base currency needs to be the biggest. The response to the OP suggests that the base should be the smallest. Which is it?
How you want to set that up is completely up to you.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
So if first is Gold: 1 and 2nd is Silver: 10 does that mean that 10 silver = 1 gold?
OR
Do I need to make Silver: 1 and Gold: 10 to make 10 silver = 1 gold?
E.g. gold to silver exchange rate of 1.5 would make 10 gold to 15 silver, but 1 gold to 1 silver.
If gold is your base currency (which has always an exchange rate of 1) and silver has an exchange rate of 10, 1 gold will be 10 silver.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
So if I want a system where
1 platinum = 100 gold = 1000 silver = 10000 copper
then the exchange rate would be:
Copper: 1
Silver: 0.01
Gold: 0.001
Platinum: 0.0001
then item prices would be copper based so 1 silver 5 copper is 15 copper (value), and an item worth 1 gold 3 silver is 130 copper.
and then since the currencies are separate inventory items that don't automatically convert? (or do they?) then I'll need to hook into various places that transactions occur and do exchange math (formula?)??
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Reading above, what I'm understanding now is that there is no ready made way to have Denominations of a currency.
The currency system is more like for having faction vendors for example that only take a certain type of currency that perhaps you set up to only be obtained in certain ways.
It is not meant to have like a base 10 this is a Penny, this is a Nickel, this is a Dime, but all 3 of those coins are a fraction of a Dollar.
Is that correct?
Can one use the Exchange Inventory Money node in schematic Open on a shop to create denominations?
Thanks!
You can use the exchange node to exchange your currencies into a single one.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!