Changing default currency

Have any questions or problems in making your game, subscribing and/or using our software? Post here.
Forum rules
Make sure you are using the newest version. This can be downloaded at the top of the site via the "downloads" link.

Use a very good subject. "Problem" or "Help" are unacceptable titles.

Use the search feature before posting a question, as the answer is probably already here.

Subscript out of range error 9: This is a generic error, and we'll need way more information than that to figure out the problem. If you get this, strongly consider following the instructions of submitting your project through the Submit Bug feature within the editor.
User avatar
gerardred
Ultimate 001 Member
 
Joined: Mon Sep 17, 2012 9:58 am
Location: Bandar Lampung, Indonesia

Changing default currency

Postby gerardred » Fri Jun 17, 2016 1:18 pm

The default currency that is available in the engine is dollars ($) is there a way to alter it in any way ?

Holy molly bumping !

User avatar
JimmySterylian
001 Fanatic
 
Joined: Tue Jul 29, 2014 2:28 pm
Location:  ­ 

Re: Changing default currency

Postby JimmySterylian » Fri Jun 17, 2016 1:23 pm

In the engine it is depicted with a dollar symbol. You can change it what whatever you want within the game.
Image

User avatar
gerardred
Ultimate 001 Member
 
Joined: Mon Sep 17, 2012 9:58 am
Location: Bandar Lampung, Indonesia

Re: Changing default currency

Postby gerardred » Sat Jun 18, 2016 12:18 am

And how would I do that ?

User avatar
JimmySterylian
001 Fanatic
 
Joined: Tue Jul 29, 2014 2:28 pm
Location:  ­ 

Re: Changing default currency

Postby JimmySterylian » Sat Jun 18, 2016 5:57 am

It's really simple actually. Below I've put my own sprite to depict the currency and the field to the right retrieves "Main.Money". Have I misunderstood you or this is what you were asking?
Untitled.png
Image

dragonnutds
001 Subscriber
 
Joined: Tue Oct 27, 2009 2:06 pm

Re: Changing default currency

Postby dragonnutds » Sat Jun 18, 2016 7:55 am

it's just a number, as long as you yourself do not call it dollars in the game it can be anything you want.
Image

User avatar
RamchuK_Ntertainment
Ultimate 001 Member
 
Joined: Tue Sep 29, 2009 10:50 pm
Location: Seattle, Washington

Re: Changing default currency

Postby RamchuK_Ntertainment » Sat Jun 18, 2016 11:35 am

If you'd like to use formatted currency (whole values and decimals/cents), just retrieve the following value:
Code: Select all
"§" & Text.LeftCut(Main.MoneyFormatted,1)


The symbol in the beginning is the new currency that you'd like to use; replace it with a symbol of choice. This also applies if you want to ever use the
Code: Select all
Text.FormatMoney()
function.
Travesty: 3D Survival - WIP >>> Forum Topic
University of Washington (BABA)
-REGT- Ramchuk Entertainment Games Team
Strategy/Action/Adventure
Copyrighted©2008-2017


Return to Technical Support Questions

Who is online

Users browsing this forum: No registered users

cron