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.
Ink integration question / feature request
-
- Posts: 150
- Joined: Mon Nov 23, 2020 6:35 am
Re: Ink integration question / feature request
Hi,
You can access the DialogueSystemInkIntegration script's activeStory.currentTags property.
You can access the DialogueSystemInkIntegration script's activeStory.currentTags property.
-
- Posts: 150
- Joined: Mon Nov 23, 2020 6:35 am
Re: Ink integration question / feature request
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?
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?
-
- Posts: 150
- Joined: Mon Nov 23, 2020 6:35 am
Re: Ink integration question / feature request
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.
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
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.