Page 1 of 1

Reroute conversation that has no available text to another conversation

Posted: Mon May 20, 2024 3:29 am
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!

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

Posted: Mon May 20, 2024 8:10 am
by Tony Li
Hi,

You can check if DialogueManager.ConversationHasValidEntry() is true.

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

Posted: Sun May 26, 2024 9:00 am
by LostTrainDude
I knew it! :D

Thank you and sorry for the late reply!

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

Posted: Sun May 26, 2024 10:42 am
by Tony Li
Happy to help!