Check the completion/percentage of a conversation?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
dunathan
Posts: 7
Joined: Thu Apr 10, 2025 3:36 pm

Check the completion/percentage of a conversation?

Post by dunathan »

Is there a way to check how much of a conversation a player has progressed? Currently I´m counting the number of entries shown and comparing to the total amount. But its a very rough solution. TY
User avatar
Tony Li
Posts: 23250
Joined: Thu Jul 18, 2013 1:27 pm

Re: Check the completion/percentage of a conversation?

Post by Tony Li »

Hi,

You can use SimStatus to track which entries have been used, which will prevent double-counts if the player loops back and repeats an entry. Then check DialogueLua.GetSimStatus() for all of the conversation's dialogue entries.
dunathan
Posts: 7
Joined: Thu Apr 10, 2025 3:36 pm

Re: Check the completion/percentage of a conversation?

Post by dunathan »

Awesome, TY
User avatar
Tony Li
Posts: 23250
Joined: Thu Jul 18, 2013 1:27 pm

Re: Check the completion/percentage of a conversation?

Post by Tony Li »

Glad to help!
dunathan
Posts: 7
Joined: Thu Apr 10, 2025 3:36 pm

Re: Check the completion/percentage of a conversation?

Post by dunathan »

It worked! Now I can estimate the progress just fine, just one more thing, how do I set sim status for my entries or reset whole conversation sim status?
User avatar
Tony Li
Posts: 23250
Joined: Thu Jul 18, 2013 1:27 pm

Re: Check the completion/percentage of a conversation?

Post by Tony Li »

Hi,

If you tick the Dialogue Manager's Other Settings > Include SimStatus checkbox, the Dialogue System will automatically set SimStatus values as conversations play. Otherwise, you can use DialogueLua.GetSimStatus() and DialogueLua.MarkDialogueEntry***() methods to get and set SimStatus. To reset a conversation, loop through its dialogue entries and call DialogueLua.MarkDialogueEntryUntouched() for each.
dunathan
Posts: 7
Joined: Thu Apr 10, 2025 3:36 pm

Re: Check the completion/percentage of a conversation?

Post by dunathan »

It was right in my face, sorry! It worked, thank you again.
Post Reply