I'm new to the forums, and I've examined the Sugarcube documentation, but unless I missed something, I'm not seeing any method of importing variables from an external file. Was hoping to have some data of a player's experience transferred to other instances of the Twine game being played. In this case, when the Twine story launched, it would initialize a certain set of variables with values located in some external file (like a text file). Is there any existing method of accomplishing this?
Comments
It is possible to reference external sources as there's a Twine script that loads verbs and nouns from an online database, but for anything custom I'm guessing you'd need to be able to write the Javascript to do whatever function you wanted or shuttle the data into Twine variables and then do it that way.
I'm assuming there isn't any other method for this besides using Javascript? I mean, I could potentially learn the skills to do it, but if not, then I may just end up switching over to Game Maker as I've got a little bit of experience with it and GML. May be easier to complete the project that way.
Manually, I can write some javascript that export state.history[0].variables in a text file and other that parse the json and set the variables again.
There is some built in function for this or I'm reinventing the wheel?