statpanel("money")
stat("money","[G]G,[S]S,[C]C")
var/
G = 5
S = 60
C = 99
proc/Money()
if(usr.C > 99)
usr.S += 1
usr.C -= 100
if(usr.S > 99)
usr.G += 1
usr.S -=100
once again im new at this and i cant find reference to anything usefull. only thing i figured how to do was if id put a price=50 but when i try to make it
obj
var
price=[G],[S],[C]
(partial code thought it too long)i keep getting errors if someone could help me with the "formula" to have a shop work with this id be thankfull
[EDIT]
You could do a loop that divides money by 100 and as long as it's greater then 1, add 1 to silver and subtract 100 from copper. Then while you do that check if silver is 100 or more and if it is, add 1 to gold and subtract 100 from silver.