Conversation With Multiple NPCS

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
MableMM
Posts: 4
Joined: Tue Nov 05, 2024 8:18 pm

Conversation With Multiple NPCS

Post by MableMM »

Hello!
I've been trying to set up a conversation that envolves multiple npcs, but the speech bubble does not correctly change between them, I've set up a example here below.
Image 1
Image 1
Pic.jpg (643.21 KiB) Viewed 82 times
I have 4 npcs + player in a conversation, all the npcs have their respective names both in the actor component and their nodes in the dialogue editor, It gets weirder because when I close my project and re-open the result will be different, on the first Image only 2 of the npcs + the player showed their speech bubble but on the second image after closing and re-opening the project now the third npc recieves his speech bubble but not the 4th.
Image2
Image2
Pic2.jpg (604.81 KiB) Viewed 82 times
Is this a bug or did I set something wrong?
User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: Conversation With Multiple NPCS

Post by Tony Li »

Hi,

Are the Dialogue Actor components on separate GameObjects? They must be on separate GameObjects.
MableMM
Posts: 4
Joined: Tue Nov 05, 2024 8:18 pm

Re: Conversation With Multiple NPCS

Post by MableMM »

Hello!

Each of the characters(game objects) have their own Dialogue Actor component.
User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: Conversation With Multiple NPCS

Post by Tony Li »

Hi,

Are they separate in hierarchy (i.e., one Dialogue Actor GameObject isn't a child of another)?

Are there any errors or warnings in the Console window?

Please also review Character GameObject Assignments to make sure the correct GameObjects are being used.

Also, at any point please feel free to send a reproduction project to tony (at) pixelcrushers.com if you'd like me to take a look directly.
MableMM
Posts: 4
Joined: Tue Nov 05, 2024 8:18 pm

Re: Conversation With Multiple NPCS

Post by MableMM »

Hello!

Yes they all separeted objects.
Screenshot 2024-11-06 112957.png
Screenshot 2024-11-06 112957.png (2.5 KiB) Viewed 47 times
These are the only warnings I get related to this problem from the console
Screenshot 2024-11-06 113044.png
Screenshot 2024-11-06 113044.png (20.63 KiB) Viewed 47 times
Acording to the console the conversation shows no problems:
Screenshot 2024-11-06 113330.png
Screenshot 2024-11-06 113330.png (64.92 KiB) Viewed 47 times
If I can't figure out the problem I'll send a reproduction project thank you.
User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: Conversation With Multiple NPCS

Post by Tony Li »

Hi,

Try assigning the Basic Standard Dialogue UI prefab to the Dialogue Manager's Display Settings > Dialogue UI. Then play your scene and test the conversation.
MableMM
Posts: 4
Joined: Tue Nov 05, 2024 8:18 pm

Re: Conversation With Multiple NPCS

Post by MableMM »

Hello!

I don't think I have that prefab on my project
imagem_2024-11-06_130258481.png
imagem_2024-11-06_130258481.png (7.08 KiB) Viewed 41 times
Maybe it's another name?
I tried Default Dialog UI but that didn't work.
User avatar
Tony Li
Posts: 22034
Joined: Thu Jul 18, 2013 1:27 pm

Re: Conversation With Multiple NPCS

Post by Tony Li »

You should be able to find it here:

basicStandardDialogueUI.png
basicStandardDialogueUI.png (48.1 KiB) Viewed 40 times
Post Reply