Continue at end of audio dialogue

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
cptscrimshaw
Posts: 113
Joined: Sun Sep 20, 2020 8:21 pm

Continue at end of audio dialogue

Post by cptscrimshaw »

Hi Tony,

I have some circumstances where I'm using the Continue() sequencer command to auto-advance dialogue, but I'd like it to continue at the end of the voiceover audio clip instead of at the end of the text typed in the dialogue window.

My default sequence is:
AudioWait(entrytag);
Delay({{end}})

Is there an easy way to do this? I haven't been able to find anything and didn't want to custom code something if it already exists.

Thanks!
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Continue at end of audio dialogue

Post by Tony Li »

Hi,

You can remove the Delay({{end}}).

The AudioWait(entrytag) command will wait until the audio clip is done. If there are no other commands, the sequence will finish, and conversation will advance.

However, if you have turned on continue button mode (e.g., Dialogue Manager GameObject > Display Settings > Subtitle Settings > Continue Button set to Always), it will also wait until the player has clicked the continue button.
cptscrimshaw
Posts: 113
Joined: Sun Sep 20, 2020 8:21 pm

Re: Continue at end of audio dialogue

Post by cptscrimshaw »

Right, that makes sense. However, I do have continue mode turned on by default and I have certain conversations (i.e., bark monologues) that I want to use Continue() on rather than have the player have to hit the continue button. Make sense? Or am I missing something?
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Continue at end of audio dialogue

Post by Tony Li »

Do you want the bark monologues to automatically continue after the audio is done? If so, there are two ways:

1. Set the Sequence to:

Code: Select all

AudioWait(entrytag)->Message(Spoke);
Continue()@Message(Spoke)
2. Or inspect the conversation's properties and tick Override Display Settings > Subtitle Settings and set the conversation's Continue Button mode to Never. (You can also use Override Display Settings to set a Default Sequence for the conversation, such as the sequence above.)
Post Reply