📜  在 roblox 中创建字典 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:46.212000             🧑  作者: Mango

代码示例1
-- Add a Module Script into the ServerScriptStorage

local speechMod = {}

    speechMod.speech = {
        ["quest1"] = {    
            ["line1"] = "Hi this is quest 1",
            ["line2"] = "I have a Quest for you",
            ["line3"] = "Come back when your done"
        }, -- end quest1
    
        ["quest2"] = {    
            ["line1"] = "Hi this is quest 2",
            ["line2"] = "You have completed quest 1, great",
            ["line3"] = "Get me some Food bro"
        } -- end quest2
    } -- end speechMod.speech


return speechMod

-- LUA Scripting Language (For Making Games in Roblox)