Page 1 of 1

Detect if responce was already used once

Posted: Mon May 17, 2021 12:32 pm
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

Re: Detect if responce was already used once

Posted: Mon May 17, 2021 12:58 pm
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.

Re: Detect if responce was already used once

Posted: Wed May 19, 2021 6:02 am
by Deadcow
Perfect! Thanks

Re: Detect if responce was already used once

Posted: Wed May 19, 2021 7:59 am
by Tony Li
Happy to help!

Re: Detect if responce was already used once

Posted: Fri Jan 20, 2023 9:44 am
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?

Re: Detect if responce was already used once

Posted: Fri Jan 20, 2023 10:15 am
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"

Re: Detect if responce was already used once

Posted: Fri Jan 20, 2023 10:57 am
by Deadcow
For every tiny thing you have implemented solution, incredible! Thank you

Re: Detect if responce was already used once

Posted: Fri Jan 20, 2023 4:16 pm
by Tony Li
Glad to help!