gideon prewett Posted August 7, 2009 Posted August 7, 2009 Ive been messing around with the curency for these games and Ive made more than 1 curency but how do i get it so they can work together example: in a shop there is a item that costs ?9.99 u pay with a ?10 and get 1p back i want 3 or 4 diffrent currency's that all work together can anybody help or explane what i want better than me lol Quote
POG1 Posted August 7, 2009 Posted August 7, 2009 Re: multi curency change the data type of the field from INT(11) to DECIMAL(11,2) Quote
Dave Posted August 8, 2009 Posted August 8, 2009 Re: multi curency i want 3 or 4 diffrent currency's that all work together Your probably gonna need to create some form of "exchange" system so if your account is currently in $'s and you want to change it to say pounds or yen... To make the game more interesting you could have this change but then your players might get annoyed. You'd also need to automatically work out the prices for the items in say Yen aswell as US. Your idea is good but i would say quite hard to implement across a hole game. Quote
POG1 Posted August 8, 2009 Posted August 8, 2009 Re: multi curency You could create a currencies table and save the exchange rate (so like 0.93) and the currency char (?,$ ect) and in every place just multiply the cost of anything by the exchange rate. Im sure it wont be hard to set up, just take a lot of file edits. Quote
gideon prewett Posted August 11, 2009 Author Posted August 11, 2009 Re: multi curency my game is set in a wasteland after a nukular war i was going to have bottle caps and ring pulls so i could have a item that will cost say 4 bottle caps and 6 ring pulls does that make more sence? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.