Page 1 of 1

Sequencer shortcuts and markup tags

Posted: Fri May 22, 2020 12:29 am
by diviocity
Hi Tony,

I was wondering if you could shed some light on what exactly occurs when playing a sequence which uses a shortcut, which itself contains markup tags? Specifically...
Play Sequence:

Code: Select all

{{TaggedShortcut}}
TaggedShortcut:

Code: Select all

SetActive([var=Test.ObjectName],true);
I noticed in the Sequencer.cs script that markup tags are replaced before the shortcut:

Code: Select all

// Replace [var=varName] and [lua()] tags:
sequence = FormattedText.ParseCode(sequence);

// Replace shortcuts:
sequence = ReplaceShortcuts(sequence);
if (DialogueDebug.logWarnings && sequence.Contains("{{")) ReportUnrecognizedShortcuts(sequence);
Yet, I'm using markup tags in several of my shortcuts and they seem to be working fine. Just looking to understand better what's happening to make those work properly.

Thanks!

Re: Sequencer shortcuts and markup tags

Posted: Fri May 22, 2020 8:31 am
by Tony Li
Hi,

In version 2.2.5+, the sequencer replaces markup tags, then replaces shortcuts, then replaces markup tags in the resulting sequence.

Re: Sequencer shortcuts and markup tags

Posted: Sat May 23, 2020 1:41 am
by diviocity
Great to know!

We're locked in on 2.2.4 as we've begun making heavy edits, so we'd prefer to stay on it if possible. That said, porting over that specific block from 2.2.5 seems to have solved our issues using those two features in tandem!

Thank you!

Re: Sequencer shortcuts and markup tags

Posted: Sat May 23, 2020 8:05 am
by Tony Li
Happy to help!