How to set up multiple DataBases?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Hereder
Posts: 76
Joined: Mon Dec 21, 2020 2:53 am

How to set up multiple DataBases?

Post by Hereder »

In my game, I have LOADS of dialogue. Is it possible to load a different DataBase based on what NPC i talk too?
In that case, how? Since I assign the "Default" language DataBase to my Dialogue Manager, and all dialogues goes through the Dialogue Manager, how can I "swap it out" ?
Or do I need to have multiple Dialogue Managers and attach them to each NPC?
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to set up multiple DataBases?

Post by Tony Li »

Hi,

Use one Dialogue Manager.

Assign your "global" database to the Dialogue Manager's Initial Database field.

Create additional databases and add them to an Extra Databases component on the Dialogue Manager.

Set the Base ID of each additional database to help prevent ID conflicts. For example, set them to 1000, 2000, 3000, etc.

More important info: Working With Multiple Databases

When you're setting up an NPC's Dialogue System Trigger, assign the database containing the NPC's conversation(s) to the Dialogue System Trigger's Reference Database. The Reference Database field is only used to populate the Conversation dropdown in the editor. The database must still be assigned to the Dialogue Manager's Initial Database field or Extra Databases component.
Hereder
Posts: 76
Joined: Mon Dec 21, 2020 2:53 am

Re: How to set up multiple DataBases?

Post by Hereder »

Fantastic! Works great. thank you soo much. Really needed this to work ^^ Such a nice Diualuge System!
User avatar
Tony Li
Posts: 21678
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to set up multiple DataBases?

Post by Tony Li »

Thanks! Glad to help.
Post Reply