Re: How to change Dialogue Variable Boolean value?
Posted: Tue Sep 26, 2023 12:35 am
Which dialogue system are you talking about?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:
There are also equivalent visual scripting actions for PlayMaker, etc.Code: Select all
using PixelCrushers.DialogueSystem; // (include at top of script) ... DialogueLua.SetVariable("Access_Code", true)
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