Skip to content

GetQuestInfo

A quest’s definition.

The same shape as CreateQuest takes, with its key (nil when it has none); every objective is a table with its text, log, updatedLog, doneLog, failedLog, marker and active.

GetQuestInfo(id)
Parameter Type
id number|string the quest’s id or key

table - the definition; nil when there is no such quest

local info = GetQuestInfo(ERRAND)
Log(string.format("%s has %d objectives", info.name, #info.objectives))

CreateQuest · UpdateQuest · the Quests group of the index