Page 1 of 1

Dialogue System, change variable from 1 dialogue database via another script from scene

Posted: Tue Apr 22, 2025 1:03 pm
by edybtt
How i can change some variables from 1 dialogue database via another script from scene, thanks!

Re: Dialogue System, change variable from 1 dialogue database via another script from scene

Posted: Tue Apr 22, 2025 2:01 pm
by Tony Li
Hi,

If you're using multiple databases, make sure you've carefully read Working With Multiple Databases. At runtime, generally speaking there's no such thing as separate databases. They're all merged into DialogueManager.masterDatabase, and you can change variable values using DialogueLua.SetVariable().