How to lock one of the responses?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Lucian1899
Posts: 12
Joined: Wed Dec 13, 2023 9:23 am

How to lock one of the responses?

Post by Lucian1899 »

Hi,
Sorry if this question had answer already. I use boolean variable on two responses so that player could see only one of them each time. Now I want both responses appear, one can be selected, the other is locked, how can I do this?And how could the available/locked state change according to boolean variable? Thanks for help!
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to lock one of the responses?

Post by Tony Li »

Hi,

To lock a response so the player can't select it:

1. Tick the Dialogue Manager GameObject's Display Settings > Input Settings > Allow Invalid Entries.

2. Inspect the dialogue entry and set its Conditions to check the Dialogue System Boolean variable.

This will show the response button in a non-clickable state.

Note: With this configuration, all invalid responses (i.e., those whose dialogue entries' Conditions are false) will be shown. To only show some invalid responses but not others, see the last paragraph in this post: How To: Do Skill Checks in Conversations
Lucian1899
Posts: 12
Joined: Wed Dec 13, 2023 9:23 am

Re: How to lock one of the responses?

Post by Lucian1899 »

Many thanks Tony, the reply and those posts help a lot, problem solved!
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to lock one of the responses?

Post by Tony Li »

Glad to help!
Post Reply