How to change Dialogue Variable Boolean value?

Announcements, support questions, and discussion for the Dialogue System.
BenjaParra
Posts: 1
Joined: Tue Sep 26, 2023 12:33 am

Re: How to change Dialogue Variable Boolean value?

Post by BenjaParra »

Tony Li wrote: Sun May 10, 2020 3:15 pm Hi,

Thanks for using the Dialogue System!

Yes, you can change the variable value in a C# script like this:

Code: Select all

using PixelCrushers.DialogueSystem; // (include at top of script)
...
DialogueLua.SetVariable("Access_Code", true)
There are also equivalent visual scripting actions for PlayMaker, etc.

You can also use a Dialogue System Trigger. For example, if the player learns the access code by entering a trigger area, you can add a Dialogue System Trigger to the trigger area:


setAccessCodeTrue.png
Which dialogue system are you talking about?
User avatar
Tony Li
Posts: 22115
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to change Dialogue Variable Boolean value?

Post by Tony Li »

This one: Dialogue System for Unity

How may I help?
Post Reply