Making a quest count
In narrative terms, a quest is a series of events connected to a character within a story. In video games, quests are a sequence of connected events experienced by the player. In role-playing games, a quest might include unlocking a weapon, rescuing a prince, or defeating some great evil. Each point along the way is a step of the quest. Translated in terms of story and code, a quest can be thought of as a series of steps where the resolution of each step unlocks the next.
ink supports this pattern of smaller parts within a larger whole as stitches within a knot. Thought of in this way, each step of the quest can become its own stitch within the code, with the outcome of each stitch being able to move to the next within the larger structure. Using LIST
in ink also allows us to define the steps we want by name, with a special knot progressing the player from one stitch to the next within the quest structure.
In this section, we will learn how to design a quest...