• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Currency Edit

Frodie

Well-known member
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
 
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.
 
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.
 

Attachments

  • Currency Example.jpg
    Currency Example.jpg
    215.9 KB · Views: 19
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!
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    335.2 KB · Views: 11
Last edited:
Back
Top