In my game I have kind of tutorial in which NPC talks to Player. During tutorial there are few gameplay objectives that player needs to complete in order to proceed with the tutorial (conversation with NPC). So my goal is to make a simple sequence: Listen to NPC -> Dialogue UI is hidden -> Player completes objective -> Dialogue with NPC resumed and new cycle starts -> ....
To track player progress I made a variable inside DialogueManager: Then, after player completes the task, I'm setting gameplayProgress variable value from code:
Code: Select all
DialogueLua.SetVariable("gameplayProgress", objectiveIndex);