Sequencer shortcuts and markup tags

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
diviocity
Posts: 22
Joined: Sun Feb 25, 2018 12:50 am

Sequencer shortcuts and markup tags

Post 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!
User avatar
Tony Li
Posts: 21069
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequencer shortcuts and markup tags

Post 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.
diviocity
Posts: 22
Joined: Sun Feb 25, 2018 12:50 am

Re: Sequencer shortcuts and markup tags

Post 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!
User avatar
Tony Li
Posts: 21069
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequencer shortcuts and markup tags

Post by Tony Li »

Happy to help!
Post Reply