Dialogue System with UCC and Behavior Designer

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
christianwiele
Posts: 29
Joined: Sat Mar 27, 2021 7:34 am

Dialogue System with UCC and Behavior Designer

Post by christianwiele »

Hi,

I want to use the Dialogue System with an UCC NPC and Behavior Designer. Is there an example available somewhere as I haven't found a description on how to set up the NPC in this case. There are only examples for UCC or BD alone, but not together.

Thanks, Christian
User avatar
Tony Li
Posts: 22047
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue System with UCC and Behavior Designer

Post by Tony Li »

I don't think there are any current examples using all 3. Have you run into any specific issues?
christianwiele
Posts: 29
Joined: Sat Mar 27, 2021 7:34 am

Re: Dialogue System with UCC and Behavior Designer

Post by christianwiele »

I have not yet started, but I thought if I add the interactable component to the NPC then it is bypassing Behavior Designer?! So the main question is how a player can start the conversation with the NPC so it uses the tasks of BD.
User avatar
Tony Li
Posts: 22047
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue System with UCC and Behavior Designer

Post by Tony Li »

If you use an Interactable component on your NPC, it won't do anything with BD. In fact, you may want to add a Dialogue System Events component that pauses the behavior tree, or configure your behavior tree to check if a conversation is active.
christianwiele
Posts: 29
Joined: Sat Mar 27, 2021 7:34 am

Re: Dialogue System with UCC and Behavior Designer

Post by christianwiele »

So, as I understand, I still have to use the interactable component, but then have to build a connection to BD. But if the conversation is initiated by the player, the conversation is handled purely by DS, correct? Only if the NPC initiates the conversation it is handled by BD!?
User avatar
Tony Li
Posts: 22047
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue System with UCC and Behavior Designer

Post by Tony Li »

Yes, that's correct. In both cases, the player's Converse ability will go active. This is because the Converse ability reacts to OnConversationStart and OnConversationEnd events. Whether you start a conversation using a UCC Interactable or BD task, it will send those events to the conversation actor and conversation conversant.
christianwiele
Posts: 29
Joined: Sat Mar 27, 2021 7:34 am

Re: Dialogue System with UCC and Behavior Designer

Post by christianwiele »

Thank you very much. I will give it a try.
User avatar
Tony Li
Posts: 22047
Joined: Thu Jul 18, 2013 1:27 pm

Re: Dialogue System with UCC and Behavior Designer

Post by Tony Li »

Glad to help!
Post Reply