如何制作LUA货币系统

这是我的当前LUA脚本,但它不起作用:/

local Gold = 1000

local gc = 500

print(Gold)

m = io.read()

if m == '转换金币''转换金币''转换金币' then

    print('你想转换多少金币?')

    local gs = io.read()

    if gs < Gold then

        print('工作')

    else

        print('失败')

    end

end
点赞