Page 1 of 1

Force Start a Conversation in Script

Posted: Sat Dec 25, 2021 3:51 am
by HunterTom
Hi,

I have been using

Code: Select all

DialogueManager.StartConversation()
to start a conversation in script.

However, I cannot do this when another conversation is already active.

Although I do remember seeing an option in the inspector somewhere that allows me to force quit the current conversation and start the new conversation, (maybe that option is in Dialogue System Trigger?) I do not know how to do that via script.

Can someone please help me?

Thank you very much!

Re: Force Start a Conversation in Script

Posted: Sat Dec 25, 2021 8:36 am
by Tony Li
Hi,

Use something like this:

Code: Select all

if (DialogueManager.isConversationActive) DialogueManager.StopConversation();
DialogueManager.StartConversation("Another conversation");