Arcweave Guid as custom EntryTag

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Yubaba
Posts: 38
Joined: Thu Oct 08, 2020 9:37 pm

Arcweave Guid as custom EntryTag

Post 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.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Arcweave Guid as custom EntryTag

Post 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");
}
Yubaba
Posts: 38
Joined: Thu Oct 08, 2020 9:37 pm

Re: Arcweave Guid as custom EntryTag

Post 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.
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Arcweave Guid as custom EntryTag

Post by Tony Li »

Glad to help!
Post Reply