Pause/Delay while using Typewriter

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Noodle_Soup
Posts: 12
Joined: Mon Nov 20, 2017 11:38 pm

Pause/Delay while using Typewriter

Post 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. :)
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Pause/Delay while using Typewriter

Post 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."))]
Noodle_Soup
Posts: 12
Joined: Mon Nov 20, 2017 11:38 pm

Re: Pause/Delay while using Typewriter

Post 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. :)
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Pause/Delay while using Typewriter

Post by Tony Li »

Happy to help!
Post Reply