Using C# script to go to a specific conversation line
Using C# script to go to a specific conversation line
In my conversation, I have a scene event (in C# script) which (if triggered) should fast forward the conversation by several lines. I am wondering about the best way to achieve this, preferably also in C# script. Thank you!
Re: Using C# script to go to a specific conversation line
Hi,
Do you know which dialogue entry you want to fast forward to? If so, you can jump to that dialogue entry:
API References:
Do you know which dialogue entry you want to fast forward to? If so, you can jump to that dialogue entry:
Code: Select all
// Look up the dialogue entry that you want to jump to:
var entry = DialogueManager.masterDatabase.GetDialogueEntry(conversationID, entryID);
// Jump the conversation model to that entry and get the conversation state:
var state = DialogueManager.conversationModel.GetState(entry);
// Show the state:
DialogueManager.conversationController.GotoState(state);