"Continue" dialogue from code?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

"Continue" dialogue from code?

Post by fkkcloud »

Hi,

How do I force continue/move to the next conversation node without players input for a custom situation?

Basically, what I am looking for is something like:

Code: Select all

DialogueManager.ContinueToNextNode()
Thank you
fkkcloud
Posts: 298
Joined: Mon Oct 05, 2020 6:00 am

Re: "Continue" dialogue from code?

Post by fkkcloud »

I sent message from c# code

Code: Select all

PixelCrushers.DialogueSystem.Sequencer.Message("DoneSetName"); 
then in the Dialogue Node, I've set

Code: Select all

Continue()@Message(DoneSetName);
which does the job- I hope this is the right way.
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: "Continue" dialogue from code?

Post by Tony Li »

From C#, you can call the conversation view's OnContinueConversationAll() method:

Code: Select all

DialogueManager.conversationView.OnContinueConversationAll();
Post Reply