Manipulating {{end}} sequencer at Continue()

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
sleepyBear
Posts: 15
Joined: Wed Nov 07, 2018 10:27 pm

Manipulating {{end}} sequencer at Continue()

Post by sleepyBear »

Hi, basically my code in the dialogue system is

Continue()@{{end}} it works but there's a slight pause at the end of the sentence until it automatically moves to the next dialogue. Someone will butt in the middle of the conversation so it must continue instantly.

So I tried subtracting the value of {{end}}

basically

Continue@[var={{end}}-1] (something like this)... but it doesn't work and gives a warning error. (I just guessed this code can't find in the documentation on how to actually do this)

Dialogue System: Syntax error 'Can't convert nil to a number' at column 15 row 1 parsing: Continue()@nil

as of right now I hardcoded the value to a constant number but I feel like it's bad practice so I want to use {[end}} as the foundation for my timer.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Manipulating {{end}} sequencer at Continue()

Post by Tony Li »

Hi,

The sequencer doesn't support math on {{end}}.

Set the Dialogue Manager's Subtitle Settings > Min Subtitle Seconds to 0. Set Subtitle Chars Per Second to the same value as the subtitle panel's UI Text > Unity UI Typewriter Effect > Characters Per Second. Then {{end}} is guaranteed to occur exactly when the typewriter effect finishes typing.
Post Reply