StaticChapter

StaticChapter

class

Group of quests unlocked together

  • load-only Usable only while mods load. The game seals these members once loading finishes, so a call or a write from a running world raises an error.

Fields

NameTypeDescription
label Loc Localized chapter title
quests StaticQuest[] Quests belonging to this chapter
required_quests StaticQuest[] Quests that must be completed before the chapter becomes available
unlocked boolean Whether the chapter is available in the current save
on_unlock function? Called when the chapter unlocks
on_complete function? Called when every quest is completed
Standard members (5)

Every class of this kind carries these.

StaticChapter.cast(object) Trying to cast Object into StaticChapter
StaticChapter.get_class() Return StaticChapter class object
StaticChapter.find(name) Looks StaticChapter up in db, nil when there is none
StaticChapter.get(name) Takes StaticChapter from db, reports a miss to the log
StaticChapter.reg(name) load-only Register a new StaticChapter static object
Inherited from Prototype (2)
Inherited from Object (1)

Used by