Page 1 of 1

What does conditionPriority in DialogueEntry do?

Posted: Tue Jul 16, 2024 9:54 pm
by nuununuun
HI,

I was creating an editor to split a DialogueDatabase and ran into an issue where the priority of connections between all dialogue nodes was reset to Normal.
screenshot.png
screenshot.png (83 KiB) Viewed 363 times
I used the AddConversation function to add a conversation to another DialogueDatabase, and it seems that all links have a Priority of Normal because of the LinkUtility.SetOutgoingLinks function I use internally.
What does the conditionPriority of the DialogueEntry do?
Would it be better to add it directly to the conversations List in the DialogueDatabase?

Re: What does conditionPriority in DialogueEntry do?

Posted: Wed Jul 17, 2024 12:08 am
by Tony Li
Hi,

DialogueEntry.conditionPriority does nothing in the Dialogue System. It's a vestige from Chat Mapper. The Dialogue System uses the same data structure as Chat Mapper and is cross-compatible with Chat Mapper, so we need to still keep the variable.

In the Dialogue System, link priorities are only observed in Link.priority.

Re: What does conditionPriority in DialogueEntry do?

Posted: Wed Jul 17, 2024 12:36 am
by nuununuun
All conversations have the conditionPriority value set to Normal, so when the SortoutgoingLinks function is called, all Links in the conversation node become Normal.
Is this function incorrect? Or is it the situation where the conditionPriority value is Normal that is wrong?
If not that, should I not use the AddConversation function? :)

Re: What does conditionPriority in DialogueEntry do?

Posted: Wed Jul 17, 2024 12:46 am
by Tony Li
That looks like a bug. I'll provide a patch here tomorrow.

Re: What does conditionPriority in DialogueEntry do?

Posted: Wed Jul 17, 2024 12:49 am
by nuununuun
Thanks for the answer! :D :D

Re: What does conditionPriority in DialogueEntry do?

Posted: Wed Jul 17, 2024 5:01 pm
by Tony Li

Re: What does conditionPriority in DialogueEntry do?

Posted: Wed Jul 17, 2024 8:38 pm
by nuununuun
thanks ;)