Page 1 of 1

How to lock one of the responses?

Posted: Mon Jan 08, 2024 9:21 am
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!

Re: How to lock one of the responses?

Posted: Mon Jan 08, 2024 1:03 pm
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

Re: How to lock one of the responses?

Posted: Tue Jan 09, 2024 8:36 am
by Lucian1899
Many thanks Tony, the reply and those posts help a lot, problem solved!

Re: How to lock one of the responses?

Posted: Tue Jan 09, 2024 9:01 am
by Tony Li
Glad to help!