Page 1 of 1

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

Posted: Wed Jul 28, 2021 3:11 am
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

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

Posted: Wed Jul 28, 2021 8:00 am
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.

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

Posted: Wed Jul 28, 2021 11:13 am
by Ryoh
It worked!
Thanks Tony!!

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

Posted: Wed Jul 28, 2021 12:47 pm
by Tony Li
Glad to help!