[possible bug] default sequence markup for ink

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
nehvaleem
Posts: 96
Joined: Tue Sep 10, 2019 4:52 am

[possible bug] default sequence markup for ink

Post by nehvaleem »

I've noticed that such sequencer command

Code: Select all

{Sequence("{{default}}; SetTimeout(5);")}
isn't possible while using ink - it will complain about the curly braces and won't compile.
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: [possible bug] default sequence markup for ink

Post by Tony Li »

Looks like Ink's parser can't handle that case, even though the curly braces are inside a string.

What if I add a special case for the Ink integration that treats square braces as curly braces? Then you could use:

Code: Select all

{Sequence("[[default]]; SetTimeout(5);")}
nehvaleem
Posts: 96
Joined: Tue Sep 10, 2019 4:52 am

Re: [possible bug] default sequence markup for ink

Post by nehvaleem »

yeah, that should help. Ink is pretty restrictive when it comes to curly braces :)
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: [possible bug] default sequence markup for ink

Post by Tony Li »

Here's the updated integration. In {Sequence("xxx")}, all '[[' will be replaced by '{{', and all ']]' by '}}' in xxx.

DS_InkSupport_2021-08-13.unitypackage
nehvaleem
Posts: 96
Joined: Tue Sep 10, 2019 4:52 am

Re: [possible bug] default sequence markup for ink

Post by nehvaleem »

thanks! Much appreciated!
User avatar
Tony Li
Posts: 22158
Joined: Thu Jul 18, 2013 1:27 pm

Re: [possible bug] default sequence markup for ink

Post by Tony Li »

Glad to help!
Post Reply