Page 1 of 1
Ink integration question / feature request
Posted: Tue May 18, 2021 11:50 am
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.
Re: Ink integration question / feature request
Posted: Tue May 18, 2021 1:10 pm
by Tony Li
Hi,
You can access the DialogueSystemInkIntegration script's activeStory.currentTags property.
Re: Ink integration question / feature request
Posted: Wed May 19, 2021 4:08 am
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?
Re: Ink integration question / feature request
Posted: Wed May 19, 2021 7:57 am
by Tony Li
Hi,
You could check them in an
OnConversationLine method.
Re: Ink integration question / feature request
Posted: Wed May 19, 2021 8:36 am
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.
Re: Ink integration question / feature request
Posted: Wed May 19, 2021 10:15 am
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.