Page 1 of 1

Manipulating {{end}} sequencer at Continue()

Posted: Mon Nov 26, 2018 11:00 pm
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.

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

Posted: Tue Nov 27, 2018 7:47 am
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.