Search found 4 matches

by aliom
Mon Nov 22, 2021 10:37 pm
Forum: Dialogue System for Unity
Topic: How can I control Quest State by the Boolean value of Toggle?
Replies: 2
Views: 179

Re: How can I control Quest State by the Boolean value of Toggle?

I'm sorry; I don't think I understand. But I'll try to provide some info. It may be easiest to write a small script. For example, add a script like this to the Toggle, and configure the Toggle's OnValueChanged() UnityEvent to call the script's OnValueChanged method: ToggleControlQuestState.cs using...
by aliom
Sat Nov 20, 2021 10:34 am
Forum: Dialogue System for Unity
Topic: How can I control Quest State by the Boolean value of Toggle?
Replies: 2
Views: 179

How can I control Quest State by the Boolean value of Toggle?

I want the player to select the correct answer from several Toggles and then click the OK button to complete the Quest. If the player selects the wrong answer the Quest will not be completed. Xnip2021-11-21_00-19-35.jpg Now I use Dialogue System Trigger's OnUse() to set the Quest State to Success af...
by aliom
Sat Nov 13, 2021 2:35 pm
Forum: Dialogue System for Unity
Topic: How to use the button tot set variables?
Replies: 3
Views: 253

Re: How to use the button tot set variables?

Tony Li wrote: Sat Nov 13, 2021 8:30 am Hi,

If you want to use a UI Button to set a Dialogue System variable, you can connect the UI Button's OnClick() event to a Dialogue System Trigger:


buttonSetVariable.png
Thank you so much!
by aliom
Sat Nov 13, 2021 3:13 am
Forum: Dialogue System for Unity
Topic: How to use the button tot set variables?
Replies: 3
Views: 253

How to use the button tot set variables?

I want to complete the quest by changing the boolean value when the button is pressed., but I can't find a way to use the UI button to set variables.
I hope I can get an answer, thanks!