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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
edybtt
Posts: 2
Joined: Tue Apr 22, 2025 12:38 pm

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

Post by edybtt »

How i can change some variables from 1 dialogue database via another script from scene, thanks!
User avatar
Tony Li
Posts: 23251
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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().
Post Reply