Show unavailable dialogue options in conversation

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

Show unavailable dialogue options in conversation

Post by Deadcow »

We set conditions in conversations like this: "Variable["Want's_to_talk"] == false" and it simply hides this answer if condition is false, as intended. Condition variable might be some Player stat, or item in inventory or anything.
We'd like to optionally show response buttons, uninteractable, to show that player missing something to continue conversation with this response.
Is there a built-in way to do this? We don't want to show all conditional dialogue options, just some specific
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Show unavailable dialogue options in conversation

Post by Tony Li »

Hi!

Please see this post.
Deadcow
Posts: 28
Joined: Tue Apr 30, 2019 8:21 am

Re: Show unavailable dialogue options in conversation

Post by Deadcow »

I'm missing something... In your example all responces comes to ShowResponses function, valid and invalid. In my project only available responses goes in this function. I compared DialogueSystemController inspectors but they looks similar :?
User avatar
Tony Li
Posts: 22055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Show unavailable dialogue options in conversation

Post by Tony Li »

Hi,

On the Dialogue Manager GameObject, tick Display Settings > Input Settings > Include Invalid Entries.
Post Reply