How to transfer variable values from one Ink story to another Ink story? (in Unity C#) #870
Replies: 1 comment
-
Hi, If that's the case, it's already working as long as you open in inky the main ink file, the one that has the includes (it could include a ink file that has other includes, but it should have the tree include structure included) If that's not the case, why do you need to pass along the variable? You should be able to do it with getting the value, and setting the value, but it will be complicated, as I do not think ink was created in the idea of having multiple main game working at the same time in the same projects. |
Beta Was this translation helpful? Give feedback.
-
I have the following variable at globals.ink:
And the following in Scene1.ink:
I want to pass
affinity
to Scene2.ink but I only get the variable value from globals.ink. I have tried to set value and get value through External functions, and tried to play with ObserveVariable. Nothing seems to work. And I cannot find any documentation on how to pass variable values to a different Ink story. I would appreciate any help.Beta Was this translation helpful? Give feedback.
All reactions