I have a question about how to display a conversation by canceling other conversation.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Ryoh
Posts: 9
Joined: Wed Jul 28, 2021 1:46 am

I have a question about how to display a conversation by canceling other conversation.

Post by Ryoh »

Hi, I have a question about how to display a conversation by canceling other conversation.

For example, there are Event trigger A and B, Conversation A and B.
Trigger Event trigger A and start Conversation A, then trigger Event trigger B and start Conversation B while Conversation A is displaying.

Current behavior is this.
Event trigger B doesn't work so Conversation B doesn't start.
After Conversation A is finished, Event trigger B works. So it seems Conversation A blocks Event trigger B.

Desired behavior is this.
Event trigger B works by canceling Conversation A.

Is it possible?

Thanks.
Ryoh
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: I have a question about how to display a conversation by canceling other conversation.

Post by Tony Li »

Hi,

By default, the Dialogue System only allows one conversation at a time to play. (To allow simultaneous conversations, tick the Dialogue Manager's Other Settings > Allow Simultaneous Conversations checkbox.)

If you're using a Dialogue System Trigger to start conversation B, tick the Dialogue System Trigger's Actions > Start Conversation > Replace checkbox. This will stop any active conversation before starting conversation B.

Otherwise, manually stop any active conversation. Example:

Code: Select all

DialogueManager.StopConversation();
DialogueManager.StartConversation("Conversation B");
If no conversation is active, StopConversation() will do nothing. So it's OK to call it if no conversation is active.
Ryoh
Posts: 9
Joined: Wed Jul 28, 2021 1:46 am

Re: I have a question about how to display a conversation by canceling other conversation.

Post by Ryoh »

It worked!
Thanks Tony!!
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: I have a question about how to display a conversation by canceling other conversation.

Post by Tony Li »

Glad to help!
Post Reply