DialogueLug getting the value wrong in Dialogue Node
Posted: Sat Jan 23, 2021 2:11 am
I am setting dialogue value before the start of conversation like this below.
Then, I use it like this below to set condition for it. the other one is checking if the bool is true.
but it always falls into "false" result.
In Variable tab, I set the variable like this: anything wrong?
Code: Select all
DialogueLua.SetVariable("DUNGEON_AVAILABLE", isDungeonAvailable);
Debug.Log(DialogueLua.GetVariable("DUNGEON_AVAILABLE").asBool); // this comes out true when isDungeonAvailable is true.
In Variable tab, I set the variable like this: anything wrong?