Saved story with conditional choice based on external function
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!
OK, a workaround for this is just parsing the choices myself and doing logic on the game side. However, I think this should be fixed in the Ink engine as well (if I'm not missing anything), perhaps by adding a function that just re-evaluates the current state of the story?