Tracking progress across multiple quests
In the previous section, we created an ink template for a quest and then moved into Unity to create the user interface to progress the quest using the ChoosePathString()
method. This forced the flow within ink to move to a specific location. In this section, we move beyond a single quest and start tracking multiple quests at the same time. To do this, the ink template needs additional variables. For this, we will need the Quest
and Dialogue
classes in C#. We also will depart from using a single ink file and start using multiple files. For every quest, we will create a separate file and use the Quest
class to track the progress of each in Unity with the Dialogue
class, which handles creating options for a player to choose from during each step in the quest.
First, we will update the ink template with a new variable we will access later in Unity. Then, we will create the Quest
and Dialogue
classes in Unity. After that, we will access multiple...