Trigger Dialogue by name in script
Posted: Mon Aug 23, 2021 3:17 am
Howdy,
Is there a way to do something in script like, say...
I tried this but I'm not sure how to use it correctly:
Thanks for any help
Is there a way to do something in script like, say...
Code: Select all
DialogueSystem.TriggerDialogue("NameOfConversation");
Code: Select all
public DialogueDatabase database; //Assigned in editor
DialogueSystemTrigger trigger = new DialogueSystemTrigger();
trigger.selectedDatabase = database;
trigger.trigger = DialogueSystemTriggerEvent.OnUse;
trigger.conversation = "NameOfConversation";
trigger.OnUse();