Reroute conversation that has no available text to another conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
LostTrainDude
Posts: 61
Joined: Wed Mar 21, 2018 2:14 pm

Reroute conversation that has no available text to another conversation

Post by LostTrainDude »

[Unity v2021.3.38f1 - DS v2.0 - Articy v2.4.15]

Hi Tony!

I'm looking for a way to find out whether a conversation *currently* has no available text nor dialogue options to show and play a different conversation if it doesn't.

Take this situation as an example:

Image

Here, when GameState.progress is less than 8 or greater than 9, I'd like to automatically (meaning via code, not through nodes in either Articy nor in DS Conversations panel) play a different conversation that has one or more default answers.

I'm aware of DialogueManager.instance.conversationEnded and the fact I can probably hack my way through by checking the number of lines spoken since the last DialogueManager.instance.conversationStarted but I wanted to know if there was already an official solution for it.

Thanks a lot as always!
User avatar
Tony Li
Posts: 20996
Joined: Thu Jul 18, 2013 1:27 pm

Re: Reroute conversation that has no available text to another conversation

Post by Tony Li »

Hi,

You can check if DialogueManager.ConversationHasValidEntry() is true.
LostTrainDude
Posts: 61
Joined: Wed Mar 21, 2018 2:14 pm

Re: Reroute conversation that has no available text to another conversation

Post by LostTrainDude »

I knew it! :D

Thank you and sorry for the late reply!
User avatar
Tony Li
Posts: 20996
Joined: Thu Jul 18, 2013 1:27 pm

Re: Reroute conversation that has no available text to another conversation

Post by Tony Li »

Happy to help!
Post Reply