Twine json Import and [em#] tags or color

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
laurelhach
Posts: 18
Joined: Fri Jan 01, 2021 2:59 pm

Twine json Import and [em#] tags or color

Post by laurelhach »

Hi Tony,

Using twine json to import dialogues in the database.
I haven't seen any documentation for [em#] tags (except for bold, italic, etc.)

Is there a way to add a color / [em#] to twine so it' imports automatically in the dialogue database?
Is it already plan in the future? If not, can you add it?

Thanks!

PS: Can you describe me a bit of the operation from the twine importer, so maybe I could add some macro to your script and send it to you for validation. If everything works your way, just add it to your plugin and i'm good with it :)
Not sure I can manage to make it work your way, but let see if at least it works on my side :P
User avatar
Tony Li
Posts: 22135
Joined: Thu Jul 18, 2013 1:27 pm

Re: Twine json Import and [em#] tags or color

Post by Tony Li »

Hi,

You can set the emphasis settings ([em#]) in your dialogue database using the Dialogue Editor window. The Twine importer only imports conversations. You can set up the emphasis settings, actors, etc., in the Dialogue Editor and they won't be overwritten when you import.
laurelhach
Posts: 18
Joined: Fri Jan 01, 2021 2:59 pm

Re: Twine json Import and [em#] tags or color

Post by laurelhach »

Hi Tony,

Sorry, I think I was not clear in my question. I know I can set the color and create new emphasis (if needed).
The thing is that I need to add the [em#] tag in the conversation node (like another post was talking about -> setting storyline priorities with colors), right? But what if I want to have them in twine so I don't need to add them in the dialogue editor?
User avatar
Tony Li
Posts: 22135
Joined: Thu Jul 18, 2013 1:27 pm

Re: Twine json Import and [em#] tags or color

Post by Tony Li »

I don't think I follow.

Do you want to wrap some Twine text in [em#] tags? If so, can't you just include the [em#] tags in the Twine text?
laurelhach
Posts: 18
Joined: Fri Jan 01, 2021 2:59 pm

Re: Twine json Import and [em#] tags or color

Post by laurelhach »

I was trying different ways to add the tags but it was removed at the import.
But by placing the tag after Player:[em1] it works.
[[Player:[em1]I am. Where are you from?->X1]]
User avatar
Tony Li
Posts: 22135
Joined: Thu Jul 18, 2013 1:27 pm

Re: Twine json Import and [em#] tags or color

Post by Tony Li »

Ah, I hadn't considered that you were using it in the Twine hyperlink (the part inside [[square brackets]]). I'll update the Twine importer to handle that.
Post Reply