Loading and managing Dialogue Databases
Posted: Wed Aug 07, 2024 3:34 pm
Hello,
I have an issue with managing Dialogue Databases and couldn't find any information how to solve this particular issue.
Basically I want to set via code, database from scriptableObject in Dialogue System Trigger
And this part is working just fine. I also set it to trigger OnDisable in mentioned component.
The problem is: it start conversation of my IntroDatabase not from Database that is attached to scriptableObject.
I've also tried to
And after that start conversation, but it didn;t solve my issue. Any thoughts how to make it work?
Should I use ExtraDatabases component for this workflow and if yes, could you elaborate a bit more how to properly do this?
I appreciate any help.
Best,
Miodek_ENT
I have an issue with managing Dialogue Databases and couldn't find any information how to solve this particular issue.
Basically I want to set via code, database from scriptableObject in Dialogue System Trigger
Code: Select all
public void OnPointerClick(PointerEventData eventData)
{
DialogueSystemTrigger dialogueSystemTrigger = GetComponent<DialogueSystemTrigger>();
dialogueSystemTrigger.selectedDatabase = sideQuest.dialogueDatabase;
}
The problem is: it start conversation of my IntroDatabase not from Database that is attached to scriptableObject.
I've also tried to
Code: Select all
DialogueManager.Instance.gameObject.GetComponent<DialogueSystemController>().initialDatabase = sideQuest.dialogueDatabase;
Should I use ExtraDatabases component for this workflow and if yes, could you elaborate a bit more how to properly do this?
I appreciate any help.
Best,
Miodek_ENT