StaticChapter
classGroup of quests unlocked together
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)
Generated for every class of this kind by the game's codegen, not written for StaticChapter.
| 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) | Register a new StaticChapter static object |
Inherited from Prototype (2)
- name 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