-- Chapter 23 example: a table holding both list items and named keys.

local quest = {
    "Speak to the elder",
    "Collect 5 herbs",
    "Return to camp",
    name = "Healer's Errand",
    reward = 50,
}

print(quest.name)      -- Healer's Errand
print(quest[1])        -- Speak to the elder
print(#quest)          -- 3 (only the list part counts)

for i, step in ipairs(quest) do
    print(i .. ". " .. step)
end
