Returns the total amount of money currently in the player's possession
See also Money functions.
Signature:
money
=
GetMoney()
Returns:
money
- Amount of money currently in the player's possession (in copper) (number
)
Examples:
local money = GetMoney() local gold = floor(abs(money / 10000)) local silver = floor(abs(mod(money / 100, 100))) local copper = floor(abs(mod(money, 100))) print(format("I have %d gold %d silver %d copper.", gold, silver, copper))