inkle / inkle/ink

How to get INCLUDEd variables to be written by state.ToJson

Open
#856 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

Greetings,
I understand the basic idea of how to write/save a Story state. Namely:
...state.ToJson()

However I just discovered that variable brought into the Story object via an INCLUDE do not seem to get saved! I looked at the json produced to confirm this. Variables coming from the master file that called the INCLUDE do get written. Just not the ones in the INCLUDE. This is extremely unfortunate as we isolated all our variables across multiple Story(ies) in an INCLUDE. Is there some way to signal to 'To.Json' to include all variables? Namely and especially the INCLUDEd ones?

Thanks in advance.
Luke Hughes
lead (Burden of Command)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.