Page 1 of 1

[SOLVED]Yarn2: [seq]tag does not working

Posted: Sun Nov 05, 2023 2:11 am
by kko828
Hi, I'm using Yarn2 together with the dialogu system, and wanna execute sequence command on dialogue line.
I'm following this documentation but the system does not recognize the tag and display as subtitle text.

My yarn file:

Code: Select all

title: Sample
---

Some line [seq="Delay(5)"/]
===

And it is displayed as follows:

Re: Yarn2: [seq]tag does not working

Posted: Sun Nov 05, 2023 9:51 am
by Tony Li
Hi,

This patch (which is also in the upcoming version 2.2.41) fixes an issue where the [seq] tag is left at the end of the Dialogue Text even through the sequence is correctly assigned to the entry's Sequence field.

DS_Yarn2Patch_2023-11-05.unitypackage


Some notes on [seq]:

The [seq] tag must be at the end of a line. So, as in your example, this is valid:

Code: Select all

Some line [seq="Delay(5)"/]
But this is not:

Code: Select all

Some [seq="Delay(5)"/] line
Line hashtags do not show up as dialogue text, they're metadata, so this is also perfectly valid syntax that works:

Code: Select all

Some line [seq="Delay(5)"/] #some_metadata:some_value
The [seq] markup can also be the only thing on a line, so this is valid:

Code: Select all

[seq="Delay(5)"/]
If there's a backslash in front of the seq markup (e.g. [seq=...]) it is ignored. Yarn has a bug where this actually terminates processing of a node if starts with a backslash:

Code: Select all

\[seq="Delay(5)"/]

Re: Yarn2: [seq]tag does not working

Posted: Sun Nov 12, 2023 3:42 am
by kko828
Thank you for your quick reply!
I've tried your patch and it works like a charm. :D

Re: [SOLVED]Yarn2: [seq]tag does not working

Posted: Sun Nov 12, 2023 8:13 am
by Tony Li
Glad to help!