Disable response node button once it is selected

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Ekta Bhutwala
Posts: 40
Joined: Mon Sep 05, 2022 5:40 am

Disable response node button once it is selected

Post by Ekta Bhutwala »

Hii

I want to disable response node button once it is selected. and if all response button once selected then it should bypass all response node in dialog tree.

How to disable response button and bypass response node in dialogue tree?

Thanks.
User avatar
Tony Li
Posts: 21973
Joined: Thu Jul 18, 2013 1:27 pm

Re: Disable response node button once it is selected

Post by Tony Li »

Hi,

Use Conditions and link priority levels:

conditionsAndPriority.png
conditionsAndPriority.png (29.09 KiB) Viewed 277 times

The BelowNormal priority link will only be used if the Conditions on both of the blue nodes are false.

The Conditions on the blue nodes can check if those responses are currently available.

More info about Conditions: Conditions Tutorial
Ekta Bhutwala
Posts: 40
Joined: Mon Sep 05, 2022 5:40 am

Re: Disable response node button once it is selected

Post by Ekta Bhutwala »

Hii Tony,

I want to show response but want it to be disable form like this :
Image

In above image you can see Hello can i ask is in disable mode.

So what will be the condition? can you please guide me in detail.

Thanks,
Attachments
Screenshot 2022-09-06 140311.png
Screenshot 2022-09-06 140311.png (480.13 KiB) Viewed 268 times
User avatar
Tony Li
Posts: 21973
Joined: Thu Jul 18, 2013 1:27 pm

Re: Disable response node button once it is selected

Post by Tony Li »

You'll use the same Conditions. (You might want to use SimStatus.)

To show buttons whose Conditions are false, inspect the Dialogue Manager GameObject. Tick Display Settings > Input Settings > Include Invalid Responses. You can set the Em Tag For Invalid Responses, and specify how it should look in the Dialogue Editor's Database tab > Database Properties > Emphasis Tags section.
Ekta Bhutwala
Posts: 40
Joined: Mon Sep 05, 2022 5:40 am

Re: Disable response node button once it is selected

Post by Ekta Bhutwala »

Hii Tony,

I am now able to show invalid responses but when all responses clicked then it should show Below Normal Priority node but it's not showing that node where as it keeps showing all the responses with disabled form.

for that which condition do i need to add?

thanks.
User avatar
Tony Li
Posts: 21973
Joined: Thu Jul 18, 2013 1:27 pm

Re: Disable response node button once it is selected

Post by Tony Li »

Ah, good point. Since 'Show Invalid Responses' is ticked, they will always take priority over the BelowNormal link.

Instead, change the BelowNormal link to an AboveNormal link, and set its Conditions so it checks if all of the other nodes are unavailable.

conditionsAndPriority2.png
conditionsAndPriority2.png (30.37 KiB) Viewed 261 times
Ekta Bhutwala
Posts: 40
Joined: Mon Sep 05, 2022 5:40 am

Re: Disable response node button once it is selected

Post by Ekta Bhutwala »

Hii Tony

Now its working.

I added condition

Code: Select all

Dialog[1].SimStatus == "WasDisplayed" and Dialog[2].SimStatus == "WasDisplayed" and Dialog[3].SimStatus == "WasDisplayed" 
And its working

also updated link to Above Normal
User avatar
Tony Li
Posts: 21973
Joined: Thu Jul 18, 2013 1:27 pm

Re: Disable response node button once it is selected

Post by Tony Li »

Great!
Post Reply