这是我目前的lua脚本,但它不起作用:/
local Gold = 1000
local gc = 500
print(Gold)
m = io.read()
if m == 'Convert Gold' or 'convert gold' or 'CONVERT GOLD' then
print('How much gold do you want to convert?')
local gs = io.read()
if gs < Gold then
print('WORKS')
else
print('FAILED')
end
end
答案 0 :(得分:1)
尝试local gs = tonumber(io.read())
。