我如何制作货币系统LUA

我如何制作货币系统LUA,lua,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 the

这是我当前的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
localgold=1000
本地gc=500
印刷品(金色)
m=io.read()
如果m==“转换黄金”或“转换黄金”或“转换黄金”,则
打印('您要转换多少黄金?')
本地gs=io.read()
如果gs<黄金,那么
打印(‘作品’)
其他的
打印('失败')
终止
终止

试试
local gs=tonumber(io.read())
你说的“不工作”是什么意思?这是一个非常模糊的问题描述-请更具体。这是你的全部程序吗?他可能还需要说:如果m==‘转换黄金’或m==‘转换黄金’或m==‘转换黄金’,那么。。。或者更简单:如果m:lower()=='convert gold',则。。。