Detect if responce was already used once

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Deadcow
Posts: 28
Joined: Tue Apr 30, 2019 8:21 am

Detect if responce was already used once

Post by Deadcow »

I try to distinguish responces that was used once (in some dialogues with looping paths) to highlight such responces visually. Is there a way to get such info from Responce class?
I've got an idea to save dialogue entry id's along with conversation id when dialogue entry is shown and then compare aResponce.destinationEntry against this collection of all entries ever shown... but ideally I'd like to distinguish by Responce itself instead of destinationEntry
User avatar
Tony Li
Posts: 22137
Joined: Thu Jul 18, 2013 1:27 pm

Re: Detect if responce was already used once

Post by Tony Li »

Hi,

You can use SimStatus. Then you can check the value manually or set Dialogue Manager's Input Settings > Em Tag For Old Responses.
Deadcow
Posts: 28
Joined: Tue Apr 30, 2019 8:21 am

Re: Detect if responce was already used once

Post by Deadcow »

Perfect! Thanks
User avatar
Tony Li
Posts: 22137
Joined: Thu Jul 18, 2013 1:27 pm

Re: Detect if responce was already used once

Post by Tony Li »

Happy to help!
Deadcow
Posts: 28
Joined: Tue Apr 30, 2019 8:21 am

Re: Detect if responce was already used once

Post by Deadcow »

Hello again :)
I'm using Em# tag for old responses but now I need for a few specific responses to ignore this.
Is there some ways to make this or should I rewrite it to check SimStatus and style responses manually?
User avatar
Tony Li
Posts: 22137
Joined: Thu Jul 18, 2013 1:27 pm

Re: Detect if responce was already used once

Post by Tony Li »

Hi,

You could set its SimStatus back to Untouched:
  • Dialogue Text: "What do you have for sale?"
  • Script: Dialog[thisID].SimStatus = "Untouched"
Deadcow
Posts: 28
Joined: Tue Apr 30, 2019 8:21 am

Re: Detect if responce was already used once

Post by Deadcow »

For every tiny thing you have implemented solution, incredible! Thank you
User avatar
Tony Li
Posts: 22137
Joined: Thu Jul 18, 2013 1:27 pm

Re: Detect if responce was already used once

Post by Tony Li »

Glad to help!
Post Reply