Ok, so I am having issues and can't figure out why. Read tutorials, and re-read them, I know the getCurrencyInfo is the handlers I want to use. However,
Code:
--my do stuff
getCurrencyInfo(392)
local m = amount -- Current Honor Amount variable
local c = 4000 -- The honor cap of 4000
local x = c - m
--- amount = getCurrencyInfo(392) -> Failed, think I used the global 'amount' as variable
--- localized_label, amount, icon_file_name = getCurrencyInfo(392) <--- should've been able to pull information from this line, but failed.
if (m < c) then
print ("Your current honor is: ".. (m))
print ("You are "..x.." points away from cap.")
end
I tried using "," after the index and then "amount" but it did not work either.
Any suggestions?