Ink LISTs

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
dnr
Posts: 4
Joined: Fri Sep 09, 2022 8:12 pm

Ink LISTs

Post by dnr »

I understand that LISTs are a relatively new feature of Ink. Is there a way to get/set LIST variables using the current API?

When trying to set a LIST variable using for example,

Code: Select all

DialogueSystemInkIntegration.SetInkString(listVariableName, listOption);
I get the following error:

Code: Select all

StoryException: Ink had 1 error. It is strongly suggested that you assign an error handler to story.onError. The first issue was: RUNTIME ERROR: (0.18): Can not call use '==' operation on String and List
If it isn't possible to use LIST variables in this way, is it possible to add that functionality?
Thanks!
User avatar
Tony Li
Posts: 22143
Joined: Thu Jul 18, 2013 1:27 pm

Re: Ink LISTs

Post by Tony Li »

Hi,

The integration doesn't currently support lists. (I didn't even know Ink supported lists until your post.) I'll try to get support into the next release (2.2.32).
dnr
Posts: 4
Joined: Fri Sep 09, 2022 8:12 pm

Re: Ink LISTs

Post by dnr »

Amazing
Post Reply