Ink integration question / feature request

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
NotVeryProfessional
Posts: 150
Joined: Mon Nov 23, 2020 6:35 am

Ink integration question / feature request

Post by NotVeryProfessional »

Does the ink integration expose currentTags (see https://github.com/inkle/ink/blob/maste ... untime-api) or some other access to the tags in the ink story?

If not, can that be a feature request? It would be really useful to be able to put additional information (locations, different actor pictures, etc.) into the ink file and use it in Dialogue System.
User avatar
Tony Li
Posts: 22163
Joined: Thu Jul 18, 2013 1:27 pm

Re: Ink integration question / feature request

Post by Tony Li »

Hi,

You can access the DialogueSystemInkIntegration script's activeStory.currentTags property.
NotVeryProfessional
Posts: 150
Joined: Mon Nov 23, 2020 6:35 am

Re: Ink integration question / feature request

Post by NotVeryProfessional »

got it, works. I can actively query the tags.

Is there an event or something? I mean, if I use tags to set, say, the background image, how does my code get called whenever a (new) tag is encountered?
User avatar
Tony Li
Posts: 22163
Joined: Thu Jul 18, 2013 1:27 pm

Re: Ink integration question / feature request

Post by Tony Li »

Hi,

You could check them in an OnConversationLine method.
NotVeryProfessional
Posts: 150
Joined: Mon Nov 23, 2020 6:35 am

Re: Ink integration question / feature request

Post by NotVeryProfessional »

got it, will try that.

Still, the integration anyway parses the tags (looking for Actor and Conversant). That might be a good spot to hook listeners in. Just an idea.
User avatar
Tony Li
Posts: 22163
Joined: Thu Jul 18, 2013 1:27 pm

Re: Ink integration question / feature request

Post by Tony Li »

My thinking, too. In the next update, I've already split that code out into a separate virtual method to make it easy to override it if you want to process additional tags.
Post Reply