CONTENT CONTRACT · VERSION 1
SkillLesson
A lesson: the teacher who offers a skill in conversation (the Lesson icon of the dialogue), what it costs and the drill that finishes it. Taking it spends the cost; without a drill the skill is learned at once, with one once the drill is done.
Signature
{ cost: ({LessonCost})?, done: TextKey, exercise: (LessonExercise)?, intro: TextKey, needs: (ItemId)?, task: TextKey, teacher: NpcId, when: ({StoryCondition})? }Fields
| Name | Type | Meaning |
|---|---|---|
cost | {LessonCost} | Items the lesson takes when the learner takes it; they never come back. Items: 1…4 |
done | TextKey | Localization key of the teacher's words once it is learned. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
exercise | LessonExercise | Drill at a training dummy that finishes the lesson; absent: learned when taken. |
intro | TextKey | Localization key of what the teacher says about it. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
needs | ItemId | Item the learner must carry to take it and for its drill (a shield for the guard). Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: item |
task | TextKey | Localization key of the teacher's task: the cost or the drill. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
teacher | NpcId | NPC who teaches it. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: npc |
when | {StoryCondition} | Conditions under which the teacher offers it; absent: always. Items: 1…8 |