Page 1 of 1

Twine json Import and [em#] tags or color

Posted: Mon Feb 13, 2023 7:27 am
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

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

Posted: Mon Feb 13, 2023 9:11 am
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.

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

Posted: Mon Feb 13, 2023 11:35 am
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?

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

Posted: Mon Feb 13, 2023 11:52 am
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?

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

Posted: Mon Feb 13, 2023 1:52 pm
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]]

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

Posted: Mon Feb 13, 2023 1:59 pm
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.