Can I have access to quest state from another Dialogue Database

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Saper
Posts: 52
Joined: Tue Jan 12, 2021 11:25 am

Can I have access to quest state from another Dialogue Database

Post by Saper »

Hi Tony

As in the Subject can I have access to quest state from another Dialogue Database, for example:
I have two databases: Main and Conversations
In the "Main" databese I have my quests and in my "Conversations" database I have all conversations.

At the end of conversation i would like to change state of quest in "Main" database
User avatar
Tony Li
Posts: 21975
Joined: Thu Jul 18, 2013 1:27 pm

Re: Can I have access to quest state from another Dialogue Database

Post by Tony Li »

Hi,

At runtime, the Dialogue System doesn't work directly with dialogue database assets.

Instead, it creates a "master database" in memory. It then loads your Dialogue Manager's Initial Database content (e.g., Main) into the master database. You can also use an Extra Databases component to tell it to load additional databases (e.g., Conversations) into the master database. So, at runtime, everything is accessible. This means your conversation is free to change any quest state.

You may want to make Main's quest names available to your Conversations database in the Dialogue Editor, so you can select them from "..." dropdowns in dialogue entry nodes' Conditions and Script fields. To do this, use the Sync Databases feature that's explained in Working With Multiple Databases.
Post Reply