Page 1 of 1

Filter Bark by code

Posted: Tue Apr 25, 2023 8:42 am
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?

Re: Filter Bark by code

Posted: Tue Apr 25, 2023 9:57 am
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.