Getting Dialogue

Getting General Dialogue

Ensure general dialogue objects are in a folder called Resources.

// The first parameter is the name of dialogue scriptable object
// The second parameter is it's path in the resources folder
var dialogue = QT.GetGeneralDialogue("dialogue object name", "path/in/resources");

If you've placed your dialogue assets in the recommended folder (Assets/StylishEsper/QuestTree/Resources/GeneralDialogues), then it may not be necessary to specify a folder path unless the item is inside a subfolder within the GeneralDialogue folder.

Getting Quest Dialogue

When quests are created, a dialogue object is created for it automatically in the folder Assets/StylishEsper/QuestTree/Resources/QuestDialogues.

To get the dialogue object of a quest through code, you can use the quest's key as the identifier.

var dialogue = QT.GetQuestDialogue("quest key");

Last updated