Page 1 of 1

Dialogues sometimes not available

Posted: Mon Dec 17, 2018 1:41 pm
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.

Re: Dialogues sometimes not available

Posted: Mon Dec 17, 2018 2:17 pm
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.

Re: Dialogues sometimes not available

Posted: Tue Dec 18, 2018 1:09 pm
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.

Re: Dialogues sometimes not available

Posted: Tue Dec 18, 2018 10:06 pm
by Tony Li
Thanks! Happy holidays!