Page 1 of 1

Can I have access to quest state from another Dialogue Database

Posted: Tue Aug 02, 2022 8:59 am
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

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

Posted: Tue Aug 02, 2022 9:43 am
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.