Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving JSON story state right after choices and opening the story back continues from the pre-choice line #479

Open
KumoKairo opened this issue Sep 30, 2018 · 1 comment

Comments

@KumoKairo
Copy link
Contributor

We have faced an interesting issue. If we display a line of text before a set of choices and save immediately after choosing something, it starts with that pre-question line when loading. It looks like:

What do you want to eat?
    * Fish
    You eat fish. It's tasty
    * Meat
    You eat meat. It's meaty
    * Vegetables
    You eat vegetables. It's healthy

If we answer "fish", save and quit, Ink will display this at the next startup:

What do you want to eat?
You eat fish. It's tasty

It will display the question without choices, it will just continue to the next line down the path of the choice which was made before saving
Is it intentional by design?
Right now we ad-hocked a nasty solution where we force-continue the story if we have saved right after the choice so it skips the first line (pre-question) and goes down the choice line immediately

@technoplato
Copy link

@KumoKairo sorry this isn't directly related, but can you point me towards the documentation for saving?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants