Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: RE: Dwarfs for hire rule set: Currency Mod  (Read 682 times)

DrTank09

  • Bay Watcher
    • View Profile
RE: Dwarfs for hire rule set: Currency Mod
« on: January 09, 2017, 06:11:08 am »

Hey guys, the original post here http://www.bay12forums.com/smf/index.php?topic=162064.0 let me to create a mod for a building that allows us to use a form of currency.

What it does is add a building known as the "Counting Table"
Mint coins at a forge like normal, then dump those coins into a stockpile that gives to the first Counting Table.
Count Coins at the Counting Table to turn them into Urists of whatever coin metal is being used.  Urists can only be made from Coins that are copper, silver, or gold.
Urists are now tools.  Create a stockpile to receive tools from the Counting Table.
This tools stockpile should now take from the first stockpile and give to a second Counting Table.

From here the second counting table can do one of two things.  It can exchange copper Urists for silver or gold and silver for copper and gold, etc.
To do this, create a third stockpile that is dedicated to receiving tools from the second Counting Table and giving to the Second Stockpile
Or it can turn Urists back into coins at a set count for payments.  "Trasfer 10 Gold" takes 10 gold urists and turns them into 10 gold coins.
Create a 4th stockpile for coins set to take from the second Counting Table.  Now if this dwarf owes another dwarf 21 Urists, he or she can use the following commands.
Transfer 1 Gold
Transfer 1 Silver
Transfer 1 Copper

this will put the currency equivalent of 26 Dwarfbucks(Urists) into the stockpile.  Now this stockpile can be set to give to any other stockpile at any given time, usually after payment preparation is complete.  Then delete the stockpile and set it back up.

All stockpiles should be Quantum and set to take from links only.

Here is the code if you would like to use it.

reaction
Spoiler (click to show/hide)

URISTS
Spoiler (click to show/hide)

Counting Table
Spoiler (click to show/hide)

entity file additions
Spoiler (click to show/hide)

The reason this is in dwarf mode is that now that this mod is working, we still need to hash out the rules for value of work, skill, loyalty, etc.
« Last Edit: January 09, 2017, 06:14:36 am by DrTank09 »
Logged