Sequence(Delay) issue: Delay called from Ink doesn't work as expected.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
golden1yaki
Posts: 14
Joined: Tue Dec 08, 2020 6:33 am

Sequence(Delay) issue: Delay called from Ink doesn't work as expected.

Post by golden1yaki »

Hello!

I'm using Ink to write my conversation script and I may found an issue with Sequence(Delay) called from Ink.

I tried to add an extra 10s delay after a dialogue.
Screen Shot 2020-12-09 at 10.21.25.png
Screen Shot 2020-12-09 at 10.21.25.png (122.29 KiB) Viewed 404 times
The extra 10s delay sequence and the default 2s delay were both played at the same time. However, the conversation continued when the 2s delay was finished and the 10s delay was still counting down.
Screen Shot 2020-12-09 at 10.40.19.png
Screen Shot 2020-12-09 at 10.40.19.png (117.69 KiB) Viewed 404 times
In short: the sequence(Delay) from Ink was called but didn't really stop the dialogue.

Thanks in advance!
User avatar
Tony Li
Posts: 21055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence(Delay) issue: Delay called from Ink doesn't work as expected.

Post by Tony Li »

Hi,

I'll work on a fix for that. Technically I think Ink runs external functions in {braces} between lines of text. So {Sequence("Delay(10)")} runs between "I'd like to delay for 10s." and "Ah!". I'll need to find a way to catch it and make sure it plays attached to "I'd like to delay for 10s." instead of separately between the two lines.
golden1yaki
Posts: 14
Joined: Tue Dec 08, 2020 6:33 am

Re: Sequence(Delay) issue: Delay called from Ink doesn't work as expected.

Post by golden1yaki »

Hi Tony,

Thanks for your soon reply.

I put {Sequence("Delay(10)")} between "I'd like to delay for 10s." and "Ah!", but this time the function was played after "Ah!". And it still didn't delay the conversation either.
Screen Shot 2020-12-09 at 21.52.25.png
Screen Shot 2020-12-09 at 21.52.25.png (91.31 KiB) Viewed 397 times
Screen Shot 2020-12-09 at 21.40.04.png
Screen Shot 2020-12-09 at 21.40.04.png (122.83 KiB) Viewed 397 times
It seems like the {Sequence("Delay(10)")} caught from Ink operates on its own instead of joining other ongoing delays.

Hope this information may help. Really appreciate!
User avatar
Tony Li
Posts: 21055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence(Delay) issue: Delay called from Ink doesn't work as expected.

Post by Tony Li »

Yes, that's correct. Function calls in {braces} run relatively independently from the timing of the conversations themselves. It's looking like the most reliable way to run sequences that are tied to the timing of subtitles will be to provide an additional way to specify them. So instead of:

Code: Select all

I'd like to delay for 10s. {Sequence("Delay(10)")}
Ah!
Good!
You'll have the option to do something like this:

Code: Select all

I'd like to delay for 10s. || Delay(10)
Ah!
Good!
I just need to go through the grammar and make sure that "||" outside of {braces} doesn't mean anything special in Ink. Inside {braces}, "||" is used as the logical "or" condition.

Then again there may still be a way to unambiguously connect {Sequence(...)} to a specific Ink subtitle. I'm still researching it.
golden1yaki
Posts: 14
Joined: Tue Dec 08, 2020 6:33 am

Re: Sequence(Delay) issue: Delay called from Ink doesn't work as expected.

Post by golden1yaki »

Thanks for your help!
User avatar
Tony Li
Posts: 21055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence(Delay) issue: Delay called from Ink doesn't work as expected.

Post by Tony Li »

Hi,

I was able to get the {Sequence()} function to connect properly to subtitles, so timing should work with your Delay(10) now. You can download the updated integration package from the Dialogue System Extras page. (direct download)
User avatar
Tony Li
Posts: 21055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence(Delay) issue: Delay called from Ink doesn't work as expected.

Post by Tony Li »

Note: In the updated integration package that will be in DS version 2.2.15, the default behavior will be the old way. To tie Ink {Sequence()} functions to subtitles, you'll need to tick the Dialogue System Ink Integration's Tie Sequences To Dialogue Entries checkbox.
golden1yaki
Posts: 14
Joined: Tue Dec 08, 2020 6:33 am

Re: Sequence(Delay) issue: Delay called from Ink doesn't work as expected.

Post by golden1yaki »

Hi Tony,

This update works perfectly! Thank you very much!
User avatar
Tony Li
Posts: 21055
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence(Delay) issue: Delay called from Ink doesn't work as expected.

Post by Tony Li »

Glad to help!
Post Reply