Hi. I'm trying to change a variable with this code. The variable changes but when I try to use conditions based on this variable, it doesn't work fine! The variable shows that it's true but the condition recognize it false!
Yes, that's correct. Since dialogue text doesn't change at runtime, the Dialogue System does not put it in Lua. This saves memory.
If your text contains markup tags such as [var=variable], use FormattedText.Parse to get a version of the text with the markup tags replaced with their values: