Setting entrytag for audio files to use folders path

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
EntertainmentForge
Posts: 25
Joined: Sun Nov 29, 2020 8:50 pm

Setting entrytag for audio files to use folders path

Post by EntertainmentForge »

Hello!

I'm trying to set up my default sequence to play audio files from the folder that has the same name as the title of conversation.

Code: Select all

dialogueSystemController.displaySettings.cameraSettings.defaultSequence = "AudioWait(VA/Name_Of_Conversation/entrytag)";
Path to my audio file in this case would be: \Resources\VA\WenConv01\Wen_2_11.mp3

Can I put some variable instead of "Name_Of_Conversation" that will reflect name of the current conversation?
Thanks!
User avatar
Tony Li
Posts: 22465
Joined: Thu Jul 18, 2013 1:27 pm

Re: Setting entrytag for audio files to use folders path

Post by Tony Li »

Hi,

You could use something like:

Code: Select all

AudioWait(VA/[var=conversationTitle]/entrytag)
and set the value of Variable["conversationTitle"] in a script on the Dialogue Manager:

Code: Select all

void OnConversationStart(Transform actor)
{
    DialogueLua.SetVariable("conversationTitle", DialogueManager.lastConversationStarted);
}
EntertainmentForge
Posts: 25
Joined: Sun Nov 29, 2020 8:50 pm

Re: Setting entrytag for audio files to use folders path

Post by EntertainmentForge »

Thank you!
User avatar
Tony Li
Posts: 22465
Joined: Thu Jul 18, 2013 1:27 pm

Re: Setting entrytag for audio files to use folders path

Post by Tony Li »

Glad to help!
Post Reply