NPCs talking to each other with dialogue bubbles over their heads

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
shadyalien
Posts: 2
Joined: Thu Jun 16, 2022 7:25 pm

NPCs talking to each other with dialogue bubbles over their heads

Post by shadyalien »

Hello! I'm new here but have been using the dialogue system for a bit now and really love it!

However, I've hit a bit of a problem I'm not sure how to solve. I have two NPCs who I want to carry out a conversation on their own (without any player interaction). I want them to talk to each other in a loop with word bubbles over their heads until the player interrupts them and starts a conversation proper. I have the basic part of it working using the subtitle UI bubble template. I have a trigger volume that kicks off their conversation when the player enters using a Dialogue System Trigger. When the player enters it kicks off their conversation with the word bubbles as it should, however it *also* opens up the default, full screen dialogue UI, which is empty since their dialogue is not set to use it. How can I prevent the default dialogue panel from opening in this instance? It's as though the system is ignoring the overrides I've specified for this conversation.

I should note that I have "allow simultaneous conversations" turned on, and I have the continue button disabled for this conversation specifically. Other conversations use the continue button but this one does not as it runs itself. Has anyone else encountered an issue like this?
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

Re: NPCs talking to each other with dialogue bubbles over their heads

Post by Tony Li »

Hi,

Add an Override Dialogue UI component to one of the NPCs (the one the player won't interact with), and assign the Basic Standard Dialogue UI prefab. The Dialogue System always opens a dialogue UI in case some participant is told to use it instead of an overhead bubble subtitle panel. The Basic Standard Dialogue UI doesn't have a visible main panel, so it stays out of the way while the overhead bubble conversation plays.

On the Dialogue System Trigger that the player interacts with to interrupt the conversation, tick Actions > Start Conversation > Replace. This checkbox tells the Dialogue System Trigger to stop background conversations first.
shadyalien
Posts: 2
Joined: Thu Jun 16, 2022 7:25 pm

Re: NPCs talking to each other with dialogue bubbles over their heads

Post by shadyalien »

That worked! Thanks so much!
User avatar
Tony Li
Posts: 21977
Joined: Thu Jul 18, 2013 1:27 pm

Re: NPCs talking to each other with dialogue bubbles over their heads

Post by Tony Li »

Glad to help!
Post Reply