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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
kko828
Posts: 17
Joined: Sun Nov 05, 2023 1:59 am

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

Post 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:
Attachments
Screenshot 2023-11-05 160849.png
Screenshot 2023-11-05 160849.png (4.56 KiB) Viewed 390 times
Last edited by kko828 on Sun Nov 12, 2023 3:43 am, edited 1 time in total.
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: Yarn2: [seq]tag does not working

Post 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)"/]
kko828
Posts: 17
Joined: Sun Nov 05, 2023 1:59 am

Re: Yarn2: [seq]tag does not working

Post by kko828 »

Thank you for your quick reply!
I've tried your patch and it works like a charm. :D
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Glad to help!
Post Reply