我如何赚钱系统LUA

时间:2016-11-25 22:12:50

标签: lua

这是我目前的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

1 个答案:

答案 0 :(得分:1)

尝试local gs = tonumber(io.read())