Page 1 of 1

How To: Write Interactive Tutorial Conversations

Posted: Fri Nov 06, 2020 2:33 pm
by Tony Li
This article describes how to implement a tutorial conversation where the player must complete tasks to advance the conversation.

It uses the WaitForMessage() sequencer command. (Info: Sequences, Tutorials, additional WaitForMessage example)

In your tutorial conversation, use the WaitForMessage() sequencer command to wait for a sequencer message. In the example below, the dialogue entry "Press the red button" waits for the sequencer message "PressedRedButton".

tutorialConv1.png
tutorialConv1.png (27.82 KiB) Viewed 550 times

When the player completes the task, in a C# script call Sequencer.Message(). Example:

Code: Select all

Sequencer.Message("PressedRedButton");
If your player GameObject has a Dialogue System Events (or similar) to disable player control, don't assign it to the Dialogue System Trigger or as the conversation's actor or conversant. This way the player will still retain control for this conversation.