Hello everyone!
I am creating a series of educational games that will be hosted on different AWS Buckets and displayed inside an iframe through a web application.
Right now I am trying to create a functionality for users to be able to save their progress in each chapter when exiting the chapter window, and come back to the chapter later at the same position.
I have found the following answer which illustrates an option to use with harlowe for accessing variables inside the engine, but it is limited to local accessing of the Harlowe file:
https://twinery.org/forum/discussion/6002/i-would-like-to-access-twine-2-harlowe-variables-with-javascript
My guess is that the solution might be related to using window.postmessage() as suggested in the replies to that post, but I am not familiar with this.
Also, if we get access to Harlowe variables, which variable would hold the history of passages used by the user?
I would really appreciate your help!