Tag for old responses-question

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Oskar
Posts: 21
Joined: Wed May 17, 2023 6:18 am

Tag for old responses-question

Post by Oskar »

Hi!

I've got a question about the function that colors displayed dialogue options with an emphasis color.

So, we'd like to keep the '[em#] tag for old responses' ticked in the dialogue manager, but would also like to have an option to keep some dialogue options from getting the em tag , even if they've been selected before.

Any ideas on how to achieve this? Thank you!
Attachments
GrayText.jpg
GrayText.jpg (75.85 KiB) Viewed 294 times
User avatar
Tony Li
Posts: 22871
Joined: Thu Jul 18, 2013 1:27 pm

Re: Tag for old responses-question

Post by Tony Li »

Hi,

The [em#]...[/em#] wrapping is built into the conversation model. You'll have to use an OnConversationLine(Subtitle) method in a custom script on your Dialogue Manager to remove them conditionally. For example, you could add a custom Boolean field to your dialogue entry template and check this in OnConversationLine. If it's true, remove [em#]...[/em#] from the ends of subtitle.formattedText.text.
Post Reply