Syntax
Twine Analyzer
Twine Analyzer
In order for a Twine HTML file to be compatible with the KDT Twine Analyzer or Batch Exporter, you must use specific syntax formatting. This syntax is used to parse the file for data as well as formatting when analyzing passages from a Twine story so they can be viewed like a traditional screenplay format.
The starting node must be a node called "VariableSheet". Use this node to define variables for things like characters and their names. Adding a prefix to your variable can also provide additional sorting when doing analysis.
A speaker is enclosed between two sets of 3 dashes ---.
A receiver directly follows the speaker inside the dashes --- and separated by 3 underscores ___.
Descriptions are enclosed between two sets of 3 equal signs ===. They are matched by pairs, being on the same line or space inbetween does not matter.
Directions are enclosed between two sets of 3 asterisks ***. They are matched by pairs, being on the same line or space inbetween does not matter.
Locations are enclosed between two sets of 3 pound signs ###.