Introduction to Twine
summary
Twine generates interactive fiction as a single HTML file and runs in a browser or small ~10MB desktop app, using passages (nodes) linked by [[text|target]] and logic via macros like (if:)/(set:). Variables start with $variables, default to false and are case‑insensitive; arrays and hooks let complex mechanics be implemented entirely in Twine (demoed: a key/door and a working 5‑digit combination lock). Story formats vary—Harlowe (default), SugarCube, Snowman—and custom CSS/JS can be embedded; save/export robustness is a known weakness.
AI-written summary · about
chapters (7)
- 0:00Start
- 1:46twine is a tool for creating interactive fiction
- 15:14build new passages
- 19:16setting up a variable
- 31:08add your own custom css
- 32:14publish twine
- 35:09embed an image in passages








