Page 1 of 1

Ink LISTs

Posted: Fri Sep 09, 2022 8:22 pm
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!

Re: Ink LISTs

Posted: Fri Sep 09, 2022 9:20 pm
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).

Re: Ink LISTs

Posted: Sat Sep 10, 2022 2:43 pm
by dnr
Amazing