Page 1 of 1

Setting entrytag for audio files to use folders path

Posted: Tue Jan 21, 2025 7:43 am
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!

Re: Setting entrytag for audio files to use folders path

Posted: Tue Jan 21, 2025 11:04 am
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);
}

Re: Setting entrytag for audio files to use folders path

Posted: Tue Jan 21, 2025 2:43 pm
by EntertainmentForge
Thank you!

Re: Setting entrytag for audio files to use folders path

Posted: Tue Jan 21, 2025 5:04 pm
by Tony Li
Glad to help!