What does conditionPriority in DialogueEntry do?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
nuununuun
Posts: 13
Joined: Thu Dec 17, 2020 11:54 pm

What does conditionPriority in DialogueEntry do?

Post 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 351 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?
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: What does conditionPriority in DialogueEntry do?

Post 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.
nuununuun
Posts: 13
Joined: Thu Dec 17, 2020 11:54 pm

Re: What does conditionPriority in DialogueEntry do?

Post 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? :)
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: What does conditionPriority in DialogueEntry do?

Post by Tony Li »

That looks like a bug. I'll provide a patch here tomorrow.
nuununuun
Posts: 13
Joined: Thu Dec 17, 2020 11:54 pm

Re: What does conditionPriority in DialogueEntry do?

Post by nuununuun »

Thanks for the answer! :D :D
User avatar
Tony Li
Posts: 21925
Joined: Thu Jul 18, 2013 1:27 pm

Re: What does conditionPriority in DialogueEntry do?

Post by Tony Li »

nuununuun
Posts: 13
Joined: Thu Dec 17, 2020 11:54 pm

Re: What does conditionPriority in DialogueEntry do?

Post by nuununuun »

thanks ;)
Post Reply