If you're interested in writing stories in a language like this, I've been working on a project called Yarn Spinner (https://github.com/YarnSpinnerTool/YarnSpinner) that basically implements a Twine-like system for dialogue in Unity. A few indie games are using it - most notably, Night in the Woods (https://nightinthewoods.com). We're pretty pleased with the results that people are getting from it.
Heh, I looked this up back in the day and thought how confusing it was that it had the same name as the yarn package manager since I was using it in my build process.
Does it have a way to export to JSON or another structured format? My game's built by building a website from Twine exported to JSON with Twison and it's not ideal.
We can’t do that yet but we’d be interested in knowing what kind of structured format you need? E.g., do you need the nodes? the lines? The structure of the interconnecting nodes? something exotic like the parse tree? Let us know! We'd love to help out.
Yarn Spinner predates the Yarn package manager by about 1 year!
My game is basically an interactive story told in chat format, so what I use with Twison is a list of nodes and I use the node text content, the nodes it points to, and a set of tags to organize which node correspond to which conversation. I'm currently working on a way to set variables when entering a node but that's all done 'client side'.
I've written 10+ books for O'Reilly, and one for Wiley/For Dummies, back in the day. It's a great experience, and I'm still writing for them now. We really enjoy it, and gain credibility, clients, and speaking opportunities from it. The money is fine, but the opportunities are great. Once you've done one or two, it gets easier and quicker.