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
Dialogue System with UCC and Behavior Designer
-
- Posts: 29
- Joined: Sat Mar 27, 2021 7:34 am
Re: Dialogue System with UCC and Behavior Designer
I don't think there are any current examples using all 3. Have you run into any specific issues?
-
- Posts: 29
- Joined: Sat Mar 27, 2021 7:34 am
Re: Dialogue System with UCC and Behavior Designer
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
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.
-
- Posts: 29
- Joined: Sat Mar 27, 2021 7:34 am
Re: Dialogue System with UCC and Behavior Designer
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
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.
-
- Posts: 29
- Joined: Sat Mar 27, 2021 7:34 am
Re: Dialogue System with UCC and Behavior Designer
Thank you very much. I will give it a try.
Re: Dialogue System with UCC and Behavior Designer
Glad to help!