Dialogues sometimes not available

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
OneManOnMars
Posts: 105
Joined: Tue Apr 05, 2016 9:37 am

Dialogues sometimes not available

Post by OneManOnMars »

Hey,
I have a Problem when switching between Scenes. It is a bit hard to catch, but sometimes I can't activate a conversation. I guess this is due to another conversation is still running. I tried to automaticaly continue each conversation or sequence to prevent this from Happening. But it still sometimes happend.


I have two ideas how to solve this not sure what is the best way.

Add a script to set all conversation to cancelled at the start of the Scene (not sure if this would work).


Or

I found the check box allow multiple conversations. Is there a negative aspect of this option I can't think of right now? I'll give it a try to figure it out. But maybe you can help me out on this one.
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogues sometimes not available

Post by Tony Li »

Hi,

If you're switching scenes while a conversation is active and the next scene tries to start a conversation immediately, then yes, this could happen. Both of your ideas are sound.

For the first idea, try calling:

Code: Select all

PixelCrushers.DialogueSystem.DialogueManager.StopConversation();
in an Awake() method.

For the second, the only negative impact is if the player starts a conversation with one NPC, then is allowed to run around and talk to another NPC while the first conversation is active. This would probably be confusing, since two conversations would be running at the same time. If you freeze the player during conversations, that's not an issue.
OneManOnMars
Posts: 105
Joined: Tue Apr 05, 2016 9:37 am

Re: Dialogues sometimes not available

Post by OneManOnMars »

Thank you very much. I'll try both Options and see what works best for my case.
Have some nice christmas days everyone.
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogues sometimes not available

Post by Tony Li »

Thanks! Happy holidays!
Post Reply