Page 1 of 1

Pause/Delay while using Typewriter

Posted: Sun Apr 28, 2019 2:01 am
by Noodle_Soup
Hi

First of all, yes, I've already checked the forum, in case someone says "there's tons of topics about that", the thing is that using the rich text options works only to some extent, unless I'm doing something wrong (which might be).

" \, Quarter pause (default: 0.25 second). "

Dialogue Text 1:
This is a \, sample dialogue.

The previous text works like a charm, however...

Dialogue Text 2:
[lua(RandomElement("This is a sample \, dialogue. | This is also a sample \, dialogue."))]

This one doesn't, it throws a "Failed to parse Letter of Name". What I'd like to know is if there might be another way around to achieve that, using LUA maybe? Unless there was no need for that and simply edit the way I use Dialogue Text 2.

Currently using v2.1.2, thanks for your time. :)

Re: Pause/Delay while using Typewriter

Posted: Sun Apr 28, 2019 8:31 am
by Tony Li
Hi,

This is a bit obscure, but since the backslash character is technically inside "code" (Lua code), use a double-backslash like this:

[lua(RandomElement("This is a sample \\, dialogue. | This is also a sample \\, dialogue."))]

Re: Pause/Delay while using Typewriter

Posted: Sun Apr 28, 2019 2:07 pm
by Noodle_Soup
Tony Li wrote: Sun Apr 28, 2019 8:31 am Hi,

This is a bit obscure, but since the backslash character is technically inside "code" (Lua code), use a double-backslash like this:

[lua(RandomElement("This is a sample \\, dialogue. | This is also a sample \\, dialogue."))]
And... It works. I'll try the same with the other delay codes for the rich text.

Thanks again Tony. :)

Re: Pause/Delay while using Typewriter

Posted: Sun Apr 28, 2019 2:12 pm
by Tony Li
Happy to help!