StaticChapter
classGroup 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
| Name | Type | Description | |
|---|---|---|---|
| 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)
- name read-only Object name
- Prototype:is_valid() Returns false once the underlying engine object has been destroyed
Inherited from Object (1)
- Object:get_class() Class of this object
Used by
- QuestSubsystem.unlock_chapter param
- QuestSubsystem.get_all_chapters return
- StaticQuest.chapter field