r/twinegames • • Dec 03 '25

Discussion Harlowe, Sugarcube, Chapbook - Which Story Format should you choose?

19 Upvotes

The first question for anybody starting out with Twine is most likely which story format to choose from among the various options (which most often boils down to Harlowe vs Sugarcube). Since r/twinegames is one of the first places to look for advice when it comes to this topic, we wanted to create a place that might help new creators make this decision by providing information, insights, and opinions from more seasoned Twine writers.

For those interested - here is a list of the various formats compiled by M. C. DeMarco - covering both Twine 1 and 2 story format. It should be noted that a lot of these formats are highly obscure (with a few only rumored to exist). It is also likely that the list is incomplete, or will become incomplete in the future.

Another very informative post that we'd encourage people to take a look - An in-depth comparison between Harlowe and Sugarcube by Chapel - which has been regularly updated and holds a lot of valuable information that might guide your decision.

While this comparison heavily favors Sugarcube over Harlowe - an assessment that both me and u/HiEv currently agree with - we do not want to say that Sugarcube is the only correct choice here.

One of the most important factors after all is which format feels most comfortable to work with for you personally. Both Harlowe and Sugarcube are perfectly capable of creating regular text adventures and both offer tools to tackle the common tasks you will encounter when writing your story. If you plan to include any more complex mechanics however you will want to make sure first that the format of your choice is equipped to handle it.

-

We would like to encourage other Twine creators and writers to share their own opinions and experiences. Which story format  are you currently working with? Why does it feel like the right choice for you? Are there any challenges or problems that a new creator should be aware of when picking this format?

Please keep any discussions civil and friendly. We all have our unique tastes and needs, and there is certainly no universally correct answer here.


r/twinegames • • Aug 06 '25

Useful Tool/Code/Tips!!! Warning about using ChatGPT or other LLMs to generate Twine Code!

120 Upvotes

As AI becomes more popular and integrated into our daily lives, we can see more and more people relying on it to tackle their daily problems. Many who are just starting out with Twine might also turn to an LLM of their choice to help them with coding and troubleshooting, but this sadly runs into a number of issues.

ChatGpt and similar large language models rely on a certain amount of data to give reliable information on a topic. Since there is not enough data available when it comes to Twine and its various story formats, AI will consistently give wrong or vastly misleading answers when it comes to Twine code. It will often interject overly-complicated chunks of Javascript, or mash together Code meant for two different formats for example. Even in cases where these solutions seem to be working at first, there is a high likelihood that they might produce bad errors in the long run.

Instead of relying on AI to answer your Twine-related issue, we would therefor recommend turning to the Twinegames subreddit or the Twine Discord server if you have any questions. There are many talented members of our community waiting to offer their support and knowledge.

Additionally - If you have problems with AI-generated code, and want to ask for advice on how to fix it, please consider just asking directly what you'd like to accomplish, instead of posting the broken code. Chances are it is not really fixable, and you will get faster replies and advice if you just left it out entirely.

Thanks for reading - and have fun creating your Twine-story!


r/twinegames • • 3h ago

SugarCube 2 [Sugarcube 2.37.3 | Twine 2.12.1] Save System Help

Post image
4 Upvotes

I am working on a save system for a template project I'll be using in future.

One of things I want is ability to save/load at same time instead of having to delete the file in order to save over it, have multiple pages for save states, possibly change the icons for the buttons and the text that appears in Save (for example instead of displaying passage text it would display $player.name)

The image here is a rough estimate how I want it too look like.

Do I just modify the current Save Menu or do I make a completely new save menu via Dialog API and replicate its styling?


r/twinegames • • 1d ago

SugarCube 2 [TWINE/SUGARCUBE] How do I make buttons for StoryMenu format horizontally.

Post image
13 Upvotes

I've been struggling to make a separate button for menu which would be a smaller button so I could format them horizontally. Do I make a seperate list and use style so the buttons scale depending how many are next to each other etc?

I am using the Twine 1.12.1 and Sugarcube 2.37.3


r/twinegames • • 19h ago

News/Article/Tutorial Let's make a game! 536: One thousand subscribers!

Thumbnail
youtube.com
1 Upvotes

r/twinegames • • 2d ago

Useful Tool/Code/Tips!!! Achievements for Twine games (for Harlowe 3, SugarCube 2, and Snowman)

Post image
20 Upvotes

I’ve heard people ask for Achievement pop-ups several times, and was looking for a use for a short Twine game I made.

I decided to make a Twine “plug-in” to let people add an achievement system to their games.

It adds toast-style achievement “pop-ups” and an achievement screen.

It uses the most durable browser storage supported (LocalStorage with fallback to Session Storage with fallback to in-memory) but doesn’t support a central server.

Is anyone willing to play the demo games or even try adding achievements to their own Twine game to give me feedback.

Proviso: Yes, both the demo games and the code itself were created with LLM-assisted tooling, no it was not “vibe coded”, it has tests ;).

works with Harlowe 3, SugarCube 2, and Snowman

https://github.com/danieltalsky/twine-achievements


r/twinegames • • 2d ago

Harlowe 3 Adding an Image (ie. game logo) to the sidebar, below or above the undo/redo buttons (Harlowe)

2 Upvotes

Can somebody please help meeeeee I've been trying for DAYS to add an image to a game I'm making on Twine. I'm using Harlowe, and want to add an image to the sidebar that has the Game's logo. I've been trying to write it in the the CSS so that it gets applied to all passages, and I cannot for the life of me figure out how to make it work.

I've modified the CSS to change the font style and colours, and I've been able to add images directly into passages using HTML <img src="URL"> but cant figure out how what I'm supposed to do in the CSS to modify the "tw-sidebar" area to add a photo.

Any help is appreciated!! I've been digging through forums and trying different examples of code but nothing seems to be working.


r/twinegames • • 2d ago

Harlowe 3 Hotspot not leading to desired passage

6 Upvotes

On Harlowe 3.3.9, tried running (print: clicked) and no clicked showed up. Reviewed my headers, fixed some issues (namely a missing comma, a stray comma, and a typo), got the header stats to work properly but didn't help with the hotspots.

I'm experiencing this issue on all (2) passages that use hotspots right now

for the one you see above:

<div style="position: relative; display:inline-block;"><img src="IMAGE\\_URL\\_1" style="width:800px; height:auto; display:block; margin-left:auto; margin-right:auto; max-width:100%;">(css: "position:absolute; left:51%; top:51.5%; width:35%; height:48%; display:block; cursor:pointer;")|tutorialpassage2>\[\]</div>

(click: ?tutorialpassage2)[(go-to: "tutorial2")]

The above is supposed to lead to a different passage with the Aranara (the green creature) facing the user

4 the 2nd passage that's not working:

<div style="position:relative; display:inline-block;"><img src="IMAGE\\_URL\\_2" style="width:600px; height:auto; display:block;">(css: "position:absolute; left:36%; top:47.5%; width:4%; height:5%; display:block; cursor:pointer;")|bed>\[\](css: "position:absolute; left:41.2%; top:30%; width:4%; height:5%; display:block; cursor:pointer;")|bookshelf>\[\](css: "position:absolute; left:60%; top:31.25%; width:4%; height:5%; display:block; cursor:pointer;")|closetcorner>\[\](css: "position:absolute; left:55%; top:46.25%; width:4%; height:5%; display:block; cursor:pointer;")|table>\[\](css: "position:absolute; left:47.8%; top:64.25%; width:4%; height:5%; display:block; cursor:pointer;")|window>\[\]</div>

(click: ?bed)[(go-to: "examplebed")] (click: ?bookshelf)[(go-to: "exampleshelf")] (click: ?closetcorner)[(go-to: "exampleleft")] (click: ?table)[(go-to: "examplemid")] (click: ?window)[(go-to: "examplewindow")]

I know there's nothing wrong with the stuff written in the second one (i think so) because I had already tested it a few days prior and it worked perfectly fine; I hadn't altered it at all afterwards. Now it's not working either.


r/twinegames • • 2d ago

Chapbook Different colored links if you have visited a passage before in Chapbook?

1 Upvotes

Is this even possible in chapbook? I've tried many things online but none of them work or were made for other story formats :/

It's not the end of the world if its not possible, just would be cool and would give the players a smoother experience


r/twinegames • • 4d ago

Useful Tool/Code/Tips!!! Twee compiler and Twine .html story fault-checker (also with image compression)

12 Upvotes

(didn't know what to flair this post as, apologies if it's wrong mods)

I've been building `twee-tools`, a free, open-source checker and compiler for Twine / Twee stories.

It's primary purpose is as a twee compiler, but it works with pure twine interface builds too. Publish your story to file from the Twine editor and run:

`twee-tools check story.html`

It lists everything it finds:

- broken links and passages nothing reaches

- dead ends

- misspelt macros: ((lnk-goto:) → did you mean (link-goto:)?)

- variables that get read but are never set

- = instead of == in a SugarCube <<if>>

- missing images

If you're using twee files you can point it to a directory and run the build command and i'll do the same thing.

It works with SugarCube, Harlowe, Chapbook and Snowman.

It's a terminal application so I can appreciate it's probably for more advanced users, but thought I'd drop it here anyway since it's relevant.

It also bundles in an image compressor. Should your story be media-heavy and require some webp conversions etc.

https://ifloom.dev/twee-tools

It's at 0.1, so I'd love to hear what it gets wrong. False positives on real stories are the most useful reports, and so are custom macro libraries it doesn't know about.


r/twinegames • • 4d ago

Game/Story [SugarCube 2 DEMO Release] Looking for a deep systemic life-sim like DoL or Stardew Valley? Try Aeterpolis—a 6–10+ hr browser sandbox where you survive a 14-day KPI countdown [Free / No AI / SFW]

Thumbnail
gallery
5 Upvotes

Hey r/twinegames! I solo-devved this over the past 2 months—my first time using SugarCube 2!

Inspired by *DoL* (Degrees of Lewdity), I got curious about how far complex, system-heavy mechanics can go inside a text-based sandbox. Since DoL updates a bit too slowly for my taste... I decided to build my own, with a stronger focus on NPC behavior, social state machines, life-sim systems—alongside heavy inspiration from *Disco Elysium* and *Stardew Valley*.

The game is SFW and free to play in your browser:

👉Play here and more info: https://moongauge.itch.io/aeterpolis

Keep in mind this is v0.0.5—an early systemic foundation build—yet it already covers two full in-game months with a conservative 6–10+ hours of gameplay and surprise contents full of personal flair intricate.

I've personally play tested it all the way to the final day with no game-breaking bugs (and remember to use the in-game Export Save for long runs!).

English isn't my first language, so if you spot any typos or technical bugs, feel free to drop a report on itch.io or in the Discord server linked on the page.

tips: Don't be afraid if you see anything *wrong*.After all... how strange could an ordinary, heartwarming academic life-sim game possibly be?


r/twinegames • • 5d ago

Chapbook Chapbook, inserting images issues, (Beginner)

Post image
6 Upvotes

(pls don't mind the spelling and grammar mistakes lol)

I am not sure what i am doing wrong :((

I have honestly been struggling with chapbook, I foolishly chose chapbook purely because I liked how it looked not because of functionality but I am so far into this story idk how i would reliably convert it all to something else, and learning a whole other story format is scary :((

I have tried both of these:

{embed image: 'Waterfall.jpg', alt: 'Waterfall and pond}

{embed image: 'https://cdn.discordapp.com/attachments/1123663713333936209/1575931626930569267/Waterfall.jpg', alt: 'Waterfall and pond'}

r/twinegames • • 7d ago

News/Article/Tutorial Let's make a game! 535: Options for retreat (Sugarcube)

Thumbnail
youtube.com
2 Upvotes

r/twinegames • • 7d ago

Useful Tool/Code/Tips!!! Would you use this?

9 Upvotes

Do any of you play Twine games on your phone? I do it a lot on iOS and it's kind of a mess. Safari reloads the tab if I leave for a minute, and iOS clears site storage after 7 days of not visiting, so my saves in longer SugarCube games kept disappearing.

So I made a little iPhone app to fix that for myself, and I'm wondering if it's useful to anyone else or if it's just me.

Basically:

  • you can grab free games from IFDB/IF Archive, or import your own .html/.zip/.twee
  • they play offline, no account
  • saves get written to a file instead of browser storage, so they stick around. you can also export/import SugarCube save files, so you can switch between your laptop and phone The part I ended up spending the most time on is actually making games. I wanted to be able to write on my phone and not just play, so there's a proper editor:
  • a passage map showing your links and branches (plus a list view when the map gets crowded)
  • Harlowe, SugarCube, Chapbook and Snowman are built in
  • buttons for [[links]] and common macros, so you're not digging through the iOS keyboard for brackets
  • add images, gifs, music and sound effects to passages, and edit the story stylesheet and JS
  • hit play anytime to test it like a player would
  • export a normal Twine html (with media, or on its own) to send to friends or put on itch, or export Twee if you use tweego/git
  • if you still write on desktop Twine, you can import the file back into the app and it updates the same story instead of adding a copy

So you could draft something on the bus, finish it on desktop, and send it to a friend who opens it in their browser.

It's def not perfect. Some games with a lot of custom JS/CSS break, and games made only for desktop can look rough on a small screen. I'm working through those as I find them.

Short clip attached if you want to see it.

Mostly curious:

  • if you play on mobile, what bugs you the most?
  • if you're an author, would you be fine with players reading your game this way?
  • would you actually write on your phone, or is that a desktop-only thing for you? what would you need in the editor?
  • any games you know break on phones? I'd like to test them

it's called Passages : Interactive Fiction on the App Store if anyone wants to try it . Free to Play (there's a one time unlock for bigger writing projects)


r/twinegames • • 7d ago

Game/Story Please check out my silly, short, text-based South Asian grocery game!

Post image
4 Upvotes

r/twinegames • • 7d ago

SugarCube 2 Question: How to set a css variable.

1 Upvotes

Hello, newbie here, so I'm working on a project and I need to know how to set a css variable that is px. using <<script>> document.documentElement.style.setProperty('--position-y', '4'); <</script>> because of a calc in my story stylesheet, but it does not work when I'm trying to use a $variable, anyone knows how to fix this?

Edit: just to make things more clear, instead of turning my --position-y into 4px I want to add 4px to it.


r/twinegames • • 8d ago

Harlowe 3 Question: How do I get the audio to start upon changing passages

4 Upvotes

I'm trying to help a friend with their Twine game and they need some looping music that activates upon changing passages. How can we do this in Harlowe 3?


r/twinegames • • 8d ago

Harlowe 3 pixel fonts won't load!

2 Upvotes

hello! I've been trying to include a custom font in my game — using a 'fonts' folder, referring to it properly, all that — but while this method worked perfectly well for other fonts (even within this project), no pixel font I've tried seems to show up when playing, even after opening the game directly from the .html file. bit problematic, since that's the style I'm working in and I'd like the text to mesh well with it!

here's the code at the top of my stylesheet, for reference:

@font-face {font-family: Pixeloid Sans;

src: url("fonts/PixeloidSans.otf")format("opentype"));

}

I'd be very grateful if anyone could provide some help with this :) thank you for reading, and have a good day!


r/twinegames • • 9d ago

Harlowe 3 Issue with alternate endings based on tags - string error {Harlowe 3} Spoiler

Thumbnail
gallery
5 Upvotes

SOLVED!!
My original code is written from using Harlowe's built-in macro generator. But I then used the manual and re-wrote the code like this and it works now:

(if:(history: where its tags contains "digest")'s length is 1)[status unknown]

My final passage has 3 possible endings. Only 1 is supposed to be revealed, depending what passage you visited prior. I tagged those passages to be one of three options. When I test from one of those endings, I receive these errors pictured. When I test from the final passage itself, there is no errors (last pic).

I still am learning to code, so I am certain it is a simple mistake that I have made. But I cannot tell what it is that I have done. If it should be a string, does this mean that I am needing to use passage names instead of tags? I was trying to avoid that as I am having several passages that can lead to one of the three possible endings (9 total passages that lead to this final passage).

Below is my code that is broken.

Crewmember IXC-992f:
(if:(history: where (passage:it)'s tags contains "digest")'s length is 1)[status unknown]
(if:(history: where (passage:it)'s tags contains "Dead")'s length is 1)[deceased]
(if:(history: where (passage:it)'s tags contains "alien")'s length is 1)[presumed contaminated]

And here is the full code for the entire passage, which is including typewriter effect and timer revealed blocks.

(font:'Courier New')[/Log:<br>]
{
|block1)[(font:'Courier New')[`[ Analysis Complete ]`:
]]}
{
|block2)[(font:'Courier New')[
    <ul>
        <li>[Crewmember MCV-278c: [[deceased->fin]] <br> Crewmember IXC-992f: {
(if:(history: where (passage:it)'s tags contains "digest")'s length is 1)[status unknown]
(if:(history: where (passage:it)'s tags contains "Dead")'s length is 1)[deceased]
(if:(history: where (passage:it)'s tags contains "alien")'s length is 1)[presumed contaminated]}<br>]<datac|</li>
    </ul>
{(change: ?datac's chars, via (t8n-delay:pos * 20) + (t8n:'instant'))}
]]
}
(set: $counter to 0)
(live: 2s)[
(set: $counter to it + 1)
(if: $counter is 1)[
(show: ?block1)
]
(else-if: $counter is 2)[
(stop:)
(show: ?block2)
]
]

r/twinegames • • 10d ago

Harlowe 3 Search Bar - Returning Set Passages (passage links not working)?

2 Upvotes

I'm using Twine in browser, Harlowe 3 story format. I'm new to coding and a beginner with Twine. I'm not sure that Harlowe's javascript can suport what I'm asking, in which case I'll just work around it. It's just for a small scale experiment for my friends anyway.

I'm trying to emulate a libary search function, where players can input searches - for examples, a name or topic, and return 3/4 "articles" (passages). What I really want is for the search results to be passage links, using [[]] format, but when I add it to the code, it just renders as plain text, not a passage link. I found a way around it using url links, but that means my "articles" have to be hosted outside twine, which isn't ideal.

Basically, I'd like to know if it's possible to amend/update the code to support the passage link format.

I have the below search bar in html: <input type='text' name='search-box'></input>

<span id='output'>

with the following in the javascript area (I'm aware that Harlowe doesn't support much javascript):

window.termList = window.termList || [];

window.SearchTerm = window.SearchTerm || function (h, descr, kw) {

'use strict';

if (this instanceof SearchTerm) {

this.handle = h;

this.description = descr;

this.keywords = kw;

} else {

return new SearchTerm(h, descr, kw, dd);

}

};

SearchTerm.add = function (h, descr, kw) {

termList.push(new SearchTerm(h, descr, kw));

};

SearchTerm.prototype = {

compare : function (stringArray) {

var term = this;

var matches = (function () {

var ret = 0;

stringArray.forEach( function (str) {

if (term.keywords.includes(str)) {

ret++;

}

});

return ret;

}());

return matches;

},

constructor : window.SearchTerm

};

$(document).on('change', 'input[name=search-box]', function (e) {

var string = $(this).val(),

matches = [], i, n = -1, highest = 0, content;

string = string.replace(/[^A-Za-z0-9\s]/, ' ');

string = string.replace(/[\s\s+]/, ' ');

string = string.trim();

string = string.split(' ');

termList.forEach( function (term) {

matches.push(term.compare(string));

});

for (i = 0; i < matches.length; i++) {

if (matches[i] > n) {

n = matches[i];

highest = i;

}

}

if (n <= 0) {

content = '';

} else {

content = termList[highest].handle + '<p></p> ' + termList[highest].description;

}

$('#output')

.empty()

.append(content);

});

// add your search terms here...

SearchTerm.add('(2) search results...', '<a href="https://drive.google.com/usp=drive_link">book!</a><p>[[Voice 2]]</p><p></p><a href="https://-wd83MTBZpC/view?usp=drive_link">book!</a>', ['win', 'winning']);

SearchTerm.add('hi','first, stop winning', ['lose', 'losing']);

SearchTerm.add('How to cheese things', 'first, eat winning', ['cheese',])

....

I'd like this bit SearchTerm.add('hi','first, stop winning', ['lose', 'losing']); to say this

SearchTerm.add('[[page 2]]','[[page 5]]', ['lose', 'losing']);

and for the [[page 2]] result to be an active link to that passage.

Any help would be great!


r/twinegames • • 10d ago

News/Article/Tutorial Let's make a game! 534: Making it easier to retreat (Sugarcube)

Thumbnail
youtube.com
2 Upvotes

r/twinegames • • 11d ago

Harlowe 3 Randomising images within passages

4 Upvotes

Is there an easy way to randomise an image in a passage?

At the moment, I have this:

(set:$IDvisit to it + 1)  <!--There is a (set:$idvsit to 0) line in the startup.-->
(b4r:"solid")+(b4r-size:5)+(b4r-colour:#51cf66)+(bg:#51cf66)+(corner-radius: 12)[
Welcome to $school

Enter name: $firstname $surname
[''Are you happy with your photo?'']
{
[(if:$IDvisit is 1)[<img src="images/face01.jpg" width="20%">] ]
[(if:$IDvisit is 2)[<img src="images/face02.jpg" width="20%">] ]
[(if:$IDvisit is 3)[<img src="images/face03.jpg" width="20%">] ]
[(if:$IDvisit is 4)[<img src="images/face04.jpg" width="20%">] ]
[(if:$IDvisit is 5)[<img src="images/face05.jpg" width="20%">] ]
[(if:$IDvisit is > 5)[<img src="images/face06.jpg" width="20%">] ] }

(background:#052650)+(b4r:"solid")+(b4r-size:2)+(b4r-colour:#5c7cfa)+(corner-radius: 12)[ [[Take again->ID check]] ] 
(background:#052650)+(b4r:"solid")+(b4r-size:2)+(b4r-colour:#5c7cfa)+(corner-radius: 12)[ [[Yes I'm happy->Processing]] ] ] 

 

And while this will load a different image each time the page reloads, its a set order from face1 to face6 (controlled by the $IDvisit counter). Ideally, I would like it to pick a random picture from the image options each time the passage loads.

I tired putting the ‘img src’ code into an array but, predictably that didn’t work. I have also made each ‘img src code’ into it’s own variable and tried that in an array too but that also didn’t work.

Is there a way to randomise the $IDvisit value? I’ve not managed to work one out.

Also, the final choice the reader picked would ideally bind to a variable so that the correct picture could be recalled later but that would just be a nice option to have, not vital.

Thanks.


r/twinegames • • 11d ago

SugarCube 2 twine set code in link?

1 Upvotes

Hello! Super new to twine and coding in general.

Been trying to make a decorated choice link have the <<set $variable to false>> so the true variation can be used as a recall of sorts later on when I need to bring it as an if statement.

Example of what I have so far:

<div class="choice-link"><a data-passage="02" class="link-internal choice-link" role="link" tabindex="0">"This is a passage."<<set $variable to true>></a></div>

<<if $variable is true>>text change for true<<else>>no change if false<</if>

I put the set false in storyinit at first then moved it into the beginning of 01 passage after housekeeping. Any help would be great and happy to pivot to something easier if this code just doesn't work at all. tyvm!


r/twinegames • • 12d ago

Game/Story Strangeness — A short 90s psychological interactive thriller

Thumbnail
gallery
2 Upvotes

Hello everyone!

I recently published my first interactive art project, created in Twine — “Strangeness”.

Play it in your browser here: https://prizrak000.itch.io/strangeness

Setting and mood: Rainfield, Oregon, 1997. A quiet evening with a best friend quickly goes to waste after an impulsive decision made at the local club. Inspired by the gritty indie cinema of the 90s, the game “Life is Strange”, and psychological thrillers.

Features:

  • Event development options that determine the fate of the characters
  • Available in both English and Russian (instant switching in the menu).
  • A short, 20–30‑minute playthrough with high tension

I would like to hear your thoughts on the pace, writing style, and overall experience.


r/twinegames • • 13d ago

News/Article/Tutorial Let's make a game! 532: The optimal strategy (Twine Sugarcube)

Thumbnail
youtube.com
2 Upvotes