Page 1 of 1

Conversation ends as soon as SequencerCommand stops?

Posted: Thu Jun 29, 2023 11:51 pm
by MaddyOSaurus
Hi there,

I've written a SequencerCommand to call some sound via FMOD. It plays the sound and waits, calling SequencerCommand.Stop() after the clip is finished. I find, however, that as soon as Stop is called, the dialogue system ends that line (even if it's not finished with the typewriter effect yet). What can I do to play the command without affecting the visual behaviour of the dialogue system?

Thank you!

Re: Conversation ends as soon as SequencerCommand stops?

Posted: Fri Jun 30, 2023 8:09 am
by Tony Li
Hi,

A subtitle will stay onscreen for the duration of its dialogue entry node's Sequence. When the Sequence field is blank, it uses the Default Sequence defined on the Dialogue Manager GameObject in Display Settings > Camera & Cutscene Settings. On an unmodified Dialogue Manager, the Default Sequence is is Delay({{end}}) which delays for a duration based on the text length, Subtitle Chars Per Second, and Min Subtitle Seconds.

Since you've specified your FMOD command, the subtitle will stay until the FMOD command has finished. If you also want it to stay until the typewriter has finished, add: WaitForMessage(Typed). Example:

Code: Select all

YourFMODCommand(entrytag);
WaitForMessage(Typed)
BTW, the Dialogue System comes with an FMODWait() sequencer command if that's any help to you.

Re: Conversation ends as soon as SequencerCommand stops?

Posted: Sun Jul 02, 2023 11:28 pm
by MaddyOSaurus
Thank you, the WaitForMessage command was what I was missing! Working as expected now :)

Re: Conversation ends as soon as SequencerCommand stops?

Posted: Mon Jul 03, 2023 8:45 am
by Tony Li
Glad to help!