Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
It's been a while, but I am helping out a friend with a user file and I would like to edit the currency. I was looking for a example in the mechanic section, but didn't see one. Can someone point me to one. Thanks
|
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
What sorts of edits do you want to make? There aren't any existing examples in the core files, but I can give you some pointers.
|
#2 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
They would like to add USD ($) with a ratio of 1 gp = 20 USD.
|
#3 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Alright, so the value of a dollar, in comparison to the base currency is .05, which puts it between CP (.01) and SP (.1). This means you're going to define USD in the slot currently occupied by SP, and shift that currency and every greater one up 1 slot.
Click on the "Currency Details" button for your mechanic, and fill in the rows as appropriate (I'll include a picture to make things clearer). Note that for the weight of a dollar bill, I did a google search for how many dollars to a pound of weight and got an answer of 454 (which I rounded to 500 to get an even weight of .002 lbs per slip). Of course there are larger denominations than 1s (like 5s and 10s, and 20s), but for simplicity I leave those out (you could totally add them as their own currencies if you wanted, or declare some other weight if you want to assume the larger denom are just there making things as a whole lighter). Anyhoo. Assuming you just add the one currency, the base coin will have moved from slot 3 (the default) to slot 4, so in the "Base Coin Slot" for the mechanic, enter 4. |
#4 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Very cool, thank you! Works great! Thank you for your help!
Last edited by Frodie; September 11th, 2017 at 02:17 PM. |
#5 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Happy to be of service.
|
#6 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Hey again, everything is working great, but I want to see if I can change the UI value on wealth to match the USD amount. I have attached a pic to help explain (wealth at the top and the USD amount in starting funds).
My script is - herofield[tMoney].value += herofield[tMoneyTtl].value But I don't think I having the right timing. I have moved it all around with no luck. My guess it would be one of the last things (like final 100000, but IDK). Any ideas, again thank you! Never mind, I got this to work at render 112000 herofield[tMoney].value *=20 Thank you! Last edited by Frodie; September 12th, 2017 at 07:52 AM. |
#7 |
Thread Tools | |
Display Modes | |
|
|