Page 1 of 1
Dialogue System with UCC and Behavior Designer
Posted: Sat Mar 27, 2021 7:40 am
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
Re: Dialogue System with UCC and Behavior Designer
Posted: Sat Mar 27, 2021 8:01 am
by Tony Li
I don't think there are any current examples using all 3. Have you run into any specific issues?
Re: Dialogue System with UCC and Behavior Designer
Posted: Sat Mar 27, 2021 8:06 am
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.
Re: Dialogue System with UCC and Behavior Designer
Posted: Sat Mar 27, 2021 8:14 am
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.
Re: Dialogue System with UCC and Behavior Designer
Posted: Sat Mar 27, 2021 9:00 am
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!?
Re: Dialogue System with UCC and Behavior Designer
Posted: Sat Mar 27, 2021 9:31 am
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.
Re: Dialogue System with UCC and Behavior Designer
Posted: Sat Mar 27, 2021 10:20 am
by christianwiele
Thank you very much. I will give it a try.
Re: Dialogue System with UCC and Behavior Designer
Posted: Sat Mar 27, 2021 10:34 am
by Tony Li
Glad to help!