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!
How to lock one of the responses?
Re: How to lock one of the responses?
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
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
-
- Posts: 12
- Joined: Wed Dec 13, 2023 9:23 am
Re: How to lock one of the responses?
Many thanks Tony, the reply and those posts help a lot, problem solved!
Re: How to lock one of the responses?
Glad to help!