+1 vote
by (240 points)
edited by

Is there a guide anywhere describing how Twine 2 handles story formats? I'm thinking about making my own.

I found the Sugarcube 2 source code but it's too frustrating to wade through, especially since it is separated into about thirty different documents and the comments are a bit redundant, like:
 

// Normalize the document.
document.normalize();

// Load the story data
Story.load();

I want to start with a bare minimum framework for a story format (no scripting, just passage links and css) and work from there.

Any suggestions?

1 Answer

+1 vote
by (157k points)
selected by
 
Best answer

The simple answer is: No

And there are only a few threads on the old forum (semi) related to the subject, the one with the most detail is:
Color Synthax HighLight to Custom Story Format

I would suggest looking at the Snowman 2 source code repository, I believe it is the simplest (structurally and code-wise) story format. It has passage links and basic CSS but no custom macro language to speak of, although it does allow the calling of Javascript via the Underscore template library.

You could also try contacting the developers of any of the story formats listed within the Story Formats section of the Twine Wiki's main page.

by (240 points)
Thank you. That's actually very helpful!
Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.
...