Multiple NPCs in the Same Scene

Original Discord Post by titamrs | 2023-12-04 20:01:07

Hi, I’m working on a unity scene that works in third person. I created 3 NPCs (Blue Robot, Green Robot, and Red Robot) on Convai.
I already had the objects with the NPC characters models and animations added in the scene, so I simply added a “Convai NPC [Color]” (Blue, Green, and Red) object inside each of the original objects I had. These added objects were based on the “Convai NPC Ellen” object from the example Scene, changing the Character ID to the one I wanted for each NPC and changing some other parts of the object since I already had the 3D model for the NPCs and the animations I wanted.
The problem is that I have the 3 NPCs with each Character ID on the scene, but only one of them is being detected. If the 3 are active in the scene, Blue Robot is detected. If Blue Robot is inactive, Green Robot is detected. If Blue and Green are inactive, Red is detected. I expected that the 3 would work, depending on where my playable character stood in the scene. I noticed that the objects “Convai NPC [Color]” are all in the same positions in the scene, and not in position (0,0,0), as they should be to stay in the place where the NPC model is. I think that might be the problem. However, when I tried putting the positions as (0,0,0), the conversations stopped working. The REC image won’t show anymore when L CTRL is pressed and the conversation won’t start.
The first image shows the positions of the objects when the conversation works, but only for one robot, as explained above. The second image shows the hierarchy of the objects.

Images:


Reply by k3kalinix | 2023-12-04 20:07:57

Hello <@671874612618854437>

Reply by k3kalinix | 2023-12-04 20:08:05

Welcome to Convai Community!

Reply by k3kalinix | 2023-12-04 20:08:38

Which version of Convai are you using?

Reply by titamrs | 2023-12-04 20:18:15

I’m using the previous one. Should I update?

Reply by k3kalinix | 2023-12-04 20:18:44

NPC manager added in the new update.

Reply by k3kalinix | 2023-12-04 20:20:53

I recommend installing the new update. Take a backup in your project before installing it. If you are using Github, you can create the different branch.

By the way, thank you for explaining your problem in detail.

Reply by titamrs | 2023-12-04 21:48:05

No problem. Where can I find information on how the NPC manager works?

Reply by k3kalinix | 2023-12-04 22:02:04

Basically, what you need to do is add your characters. Then add the name of your character to your Transcript UI object.

Reply by enormousvampire | 2023-12-11 10:09:41

Hey <@1023671043287699568> <@671874612618854437> is this issue solved ?? Do you need any more assistance?

Reply by k3kalinix | 2023-12-13 23:02:22

I think yes.

Reply by titamrs | 2023-12-17 22:15:48

I haven’t been able to try solving the problem yet, because I’m busy with other assignments, so that project is currently on hold, but I’m pretty sure the NPC manager will solve the issue :slightly_smiling_face: thanks for the help

Replying to titamrs’s Message

Reply by titamrs | 2023-12-17 22:15:48
I haven’t been able to try solving the problem yet, because I’m busy with other assignments, so that project is currently on hold, but I’m pretty sure the NPC manager will solve the issue :slightly_smiling_face: thanks for the help

Reply by k3kalinix | 2023-12-19 11:43:39

Awesome!
If you have any other questions, please do not hesitate to ask.

We would be very grateful if you could leave a comment on our store pages with your company name or the name of your project. We value your feedback and comments as they help us improve our services and products.
Asset Store: NPC AI Engine - Dialog, actions, voice and lipsync - Convai | Behavior AI | Unity Asset Store

This conversation happened on the Convai Discord Server, so this post will be closed.