inkle / inkle/ink

Saved story with conditional choice based on external function

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

Description

Hi!

I have an Ink story running in Unity, using an external function for a conditional choice, something like
+ {CheckHello()} Hello there!

If CheckHello() is false, then that choice isn't available, as it should be. However, if I save the state of the story, and then load the state when CheckHello() is true, the choice is still not available.

Calling ResetState() on the story after loading will present the choice correctly, but obviously has a lot of other effects as well.

Am I missing something that I should be able to do here? Have I set up something incorrectly? The external function is being bound before the load, moving it to afterwards has no effect.

Thanks!

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.