Page 1 of 1

Arcweave Guid as custom EntryTag

Posted: Sat Dec 03, 2022 5:53 pm
by Yubaba
Hi Tony,
I'm wanting to use Arcweave's Guids as the customEntryTag for our VO files, it's not as elegant as "conversation_entryID" but it's consistent and I know we'll be making a lot of tweaks and changes to the script as we go.

The documentation says to "assign delegate method to DialogueDatabase.getCustomEntrytag(Conversation, DialogueEntry)", I'm so sorry if this is basic, but it's over my scripting-pay-grade. What changes do I make to this to reference the Guid custom field?


Pete.

Re: Arcweave Guid as custom EntryTag

Posted: Sat Dec 03, 2022 8:03 pm
by Tony Li
Hi Pete,

Try something like this:

Code: Select all

private void Start()
{
    DialogueDatabase.getCustomEntrytag += OnGetEntrytag;        
}

private string OnGetEntrytag(Conversation conversation, DialogueEntry entry)
{
    return Field.LookupValue(entry.fields, "Guid");
}

Re: Arcweave Guid as custom EntryTag

Posted: Sun Dec 04, 2022 12:05 am
by Yubaba
Fantastic! Thank you!

I ended up having to put this in DialogueDatabase, with the Start() line in getEntryTag() instead, so that I could export a VoiceOver script, but it all appears to be working!

Thank you so much, as always.

Pete.

Re: Arcweave Guid as custom EntryTag

Posted: Sun Dec 04, 2022 8:01 am
by Tony Li
Glad to help!