Filter Bark by code

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
MasterDataBase
Posts: 8
Joined: Tue Apr 25, 2023 8:22 am

Filter Bark by code

Post by MasterDataBase »

Hi Everyone

I'm pretty new with Dialogue System, so maybe my question can be silly, but I do some research and I not find any information about it.

Now, my problem is the following: I have few characters, and each character have few single lines.
I have created a conversation schema for each character, and a child node for each single line that will be used ad bark.
But now my question is "how I can filter the right bark to execute?" and not execute a random one?

There is anyway to filter barks in the schema? maybe using a filter via C# code?
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: Filter Bark by code

Post by Tony Li »

Hi,

You can set Conditions on each node. (Conditions Tutorial)

Set the Bark Order dropdown to First Valid, and keep Cache Bark Lines UNticked.
Post Reply