Don't skip if sequence fails

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

Don't skip if sequence fails

Post by Yubaba »

Apologies if this is super basic, but I'm just getting my head around sequences.

Atm if my AudioWait(entrytag) can't find the audio files in Resources, it skips the line. Can I make it type it out in silence like it would with an empty sequence?

Thank you so much of your excellent system!
User avatar
Tony Li
Posts: 22145
Joined: Thu Jul 18, 2013 1:27 pm

Re: Don't skip if sequence fails

Post by Tony Li »

Hi,

Yes; include Delay({{end}}):

Code: Select all

Delay({{end}}); AudioWait(entrytag)
This is what the demo does. It will wait for AudioWait(entrytag) to finish and for the duration specified by {{end}} to elapse. The value of {{end}} is determined by the text length and the Dialogue Manager's Subtitle Settings > Subtitle Chars Per Second and Min Subtitle Seconds.

If you want to instead wait for the typewriter effect to finish typing, use this:

Code: Select all

None()@Message(Typed);
AudioWait(entrytag)
The None() command does nothing. But the "@Message(Typed)" part makes it wait for the typewriter to finish before doing nothing. The result is that the sequence will wait for the typewriter to finish.
Yubaba
Posts: 38
Joined: Thu Oct 08, 2020 9:37 pm

Re: Don't skip if sequence fails

Post by Yubaba »

That's exactly what I need. Thank you so much, Tony.


Pete.
User avatar
Tony Li
Posts: 22145
Joined: Thu Jul 18, 2013 1:27 pm

Re: Don't skip if sequence fails

Post by Tony Li »

Happy to help!
Post Reply