r/twinegames

Links broke

Here thing, my story was made using snowman 2.0.2 and it worked perfectly well, but today i choose to update my story to snowman 2.1.1 and every single link to different passage broke, like it stopped to be functional at all while at 2.0.2 story worked perfectly well and all passages worked correctly, any ideas what might have caused it

reddit.com
u/Dizzy-Recipe-1517 — 24 hours ago

Date and time system

I'm extremely new and I need help with a date and time system.

I managed to make one learning from old reddit posts and it works but I have 1 problem: the time goes on forever! The days of the week pass normally but then the time will say "48:00" lmao can someone help me out a bit please?

Here is the code I'm using in StoryInit:

<<set $min to 0>>

<<set setup.days to ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]>>

<<if $min >= 1440>>

<<set $min -= 1440>>

<<set $day = ($day + 1) % 7>>

<</if>>

I use <<set $min += >> to pass minutes.

THANK YOU SO MUCH!

reddit.com
u/missfisssh — 1 day ago

Page issue

How to do so when player moves to new passage in twine, they go to top of the page, because every timr i scroll down it stays down when i move to another passage and i want it return back to top, so any idea how to solve this issue?

reddit.com
u/Dizzy-Recipe-1517 — 1 day ago

Adding background music that plays automatically

Sometimes one wants to add a background music or a sound effect immediately in a passage. Maybe the character has just stepped in a misterious dungeon... or there is simply that annoying alarm clock waking them up.

The problem is that some browser do not allow a HTML page to play an audio file immediately, so simply writing at the top of my passage &lt;&lt;audio "alarmClock" volume 1 play loop&gt;&gt; would do nothing.

Is there a way to circumvent this problem? Or am I forced to trigger audio files only on the click of a button or a link?

----------------------
Edit

Even weirder: when trying to get the smaller snippet of my code possible to quote it here, the error message has changed into a nice [Uncaught (in promise) Error: failed to load any of the sources]. I then made a new twine story, put there the bare minimum to replicate it, tried... and while it still doesn't play the sound, it also gives no error.

Bare minimum:

::StoryInit
&lt;&lt;include "OneTimeInit_Audio"&gt;&gt;

::OneTimeInit_Audio
&lt;&lt;run console.log("caching audio ID: alarm")&gt;&gt;
&lt;&lt;cacheaudio "alarm"        "sounds/Tech effect/Alarm_cut.mp3"&gt;&gt;

:: Start
[[DD_S_8hours]]

::DD_S_8hours
&lt;&lt;if $audioAllowed&gt;&gt;&lt;&lt;timed 0.1s&gt;&gt;&lt;&lt;run console.log("Music start... I hope")&gt;&gt;&lt;&lt;audio "alarm" volume 1 play loop&gt;&gt;&lt;&lt;run console.log("Is music started?")&gt;&gt;&lt;&lt;/timed&gt;&gt;&lt;&lt;/if&gt;&gt;
&lt;&lt;timed 2s t8n&gt;&gt; Dragan groaned loudly. 

&lt;&lt;next 4.1s t8n&gt;&gt; &lt;div align=center&gt; &lt;img src="images/Places/Farm/Interior - Bedroom.jpg"&gt;&lt;/div&gt; &lt;&lt;scrolldown 4s&gt;&gt;

&lt;&lt;next 4s t8n&gt;&gt; With a mighty grunt, he rolled on his back and sat properly, then &lt;&lt;linkappend "switched off"&gt;&gt;&lt;&lt;masteraudio stop&gt;&gt;&lt;&lt;/linkappend&gt;&gt; the alarm and got out of the bed. 

[...]
&lt;&lt;/timed&gt;&gt;

Console output:

Il layout è stato forzato prima che la pagina fosse completamente caricata. Se questo avviene prima del caricamento dei fogli di stile, potrebbe causare la visualizzazione di contenuti privi di stile (“flash of unstyled content”). 0 - Test audio.html:46:11669
InstallTrigger è deprecato e verrà rimosso in futuro. 0 - Test audio.html:46:11669
[DEPRECATED] Config.saves.onSave has been deprecated, see the Save.onSave API instead 0 - Test audio.html:3494:92557
[DEPRECATED] Util.fromCssTime() is deprecated.

Util.fromCssTime() comes from the <<scrolldown>> macro.

reddit.com
u/Sta--Ger--2 — 1 day ago

Change style of only one link in Chapbook

Hello, I am wondering if there is a way to change the underline colour of a single link (or remove the underline entirely, either would suit my needs) in a passage while the rest of the links on the page remain the default style.

I'm using Chapbook because I have almost no coding experience. I have made myself familiar with a little bit of html and CSS while working on this project, but I haven't been able to figure out how to make this work. Thanks for any help you can offer.

reddit.com
u/spacetime-slipstitch — 3 days ago

my story just deleted itself???

i was working on a interactive story and was deep into it. an error popped up and i said ok and went going back to writing. i close twine and it said that i had 0 stories when I WAS JUST WORKING ON A STORY. i go look into the files where the stories are kept and its literally gone. theres nothing there. wtf happened???? and how can i get it back?? im freaking out right now

Edit: im using the app version on windows.

reddit.com
u/Willooooow1 — 5 days ago

Converting Twine to something else

What do most of you use to convert your Twine flow to a publishable game?

I have tried to simply build it, but the HTML isn't even really usable on Itch.

Do you convert it? Or do you rebuild it in another tool?

reddit.com
u/Draw-Flesh-Games — 5 days ago

Hi r/twinegames : finishing a 7-year SugarCube project, finally coming out of the lurker corner

Hi everyone,

Long-time lurker here, first post. I'm a French writer based outside Paris, and I've spent the last seven years building a psychological horror in Twine/SugarCube. It's finally close to release and I figured it was time to come say hello to the people whose threads I've been reading for years.

The project is called *Maximilien*. It's set in Boston in 1926, written in a quiet literary register, with around 1755 narrative nodes. The original is in French and the English version is being adapted by a literary translator with an advanced academic background, a real adaptation, not a string-replace job. I'll drop a screenshot of the editor view in a comment below if anyone's curious what seven years of SugarCube looks like from the inside.

A few technical notes, since this is the sub for it.

I came to Twine from writing, not from programming. That shaped almost every architectural decision I made in the early years, and it shows. I built my own external file system to hold the routes coherent — a naming convention with arbitrary nesting depth, where real passage names ended up looking like `c_1_r_2_2_1_1_1_1_1`. It worked, up to a point. The point being roughly the moment SugarCube started failing silently on my mixed-type variables and arbitrary sentinel values. I'd be happy to talk through the specific mistakes if anyone's mid-project and wants to avoid them.

One thing I'm particularly happy with, and that I'd love to compare notes on with other authors here: the prose carries visual artefacts that appear and intensify in response to the protagonist's inner state. It's not a sanity meter in the gameplay sense - there's no number on screen, no fail state. The text itself takes on visual layers, and the player can adjust the intensity in the settings, which I think matters for accessibility. It took a long time to find the right balance between expressive and readable. Curious whether others here have worked with similar live text effects in SugarCube and what techniques they've found.

I'm also entering IFComp 2026 in August with its core version, and with the Steam release of the "definitive edition" (with visuals, music, sounds and more narrative branches) the same week as Steam Scream Fest on October 26. I'm aware those are crowded windows. I'm doing what I can to make sure the work itself holds up to that exposure rather than chasing it.

Two questions I'd genuinely love to hear answers to:

For anyone who's shipped a Twine project of meaningful size, what's your file organization, and what would you do differently next time?

And for those still mid-project on something ambitious — what's the hardest call you're sitting on right now? I might not have advice, but seven years of similar calls has probably given me at least good company.

Thanks for the years of conversation I've read silently. It shaped this project more than you know.

Yohan

reddit.com
u/Yohan_D_Dev — 7 days ago

Is there a way to have the story advance to a set passage after a set time limit?

Hello,

Question is as above, but written another way:

I'm working on a sequel story to one I published last year, and I'd like to add an element if possible where the game advances the reader to a set passage if they don't make a selection after X seconds.

My story advances via choices, so it's a standard Create Your Own Adventure style novel where you read a block of text and then have 2-3 choices to move forward.

Since I've kept my story simple in it's engagement, I haven't really looked into the advanced features, but this would really give my story some zip by essentially adding some quick time events.

I'm using Chapbook 2.3.1 as I like the way it reads on both my first story and this one.

Thanks!

Strict-Smile2087

reddit.com
u/Strict-Smile2087 — 6 days ago

any advice on how to implement images without linking to an external host?

hello everyone! :) my current project is a choose-your-own-adventure style thing, and I've decided to include frequent black and white art to add ✨ flavour ✨ ...except I'm a little unsure about the implementation of the images themselves. I understand how to add and link the images and it works fine, it's just that the situation with imgr being banned in the uk has made me a bit cautious when it comes to the reliability of image-hosting sites. if anyone has any advice on alternative methods, I'd sincerely really appreciate it!

reddit.com
u/AwkwardSauce0602 — 7 days ago

connecting a CSS to a bar color.

hi right now I am working on connecting a stat point to a story caption with a bar that and I am looking to connect a stat point and gender to the background color. Body "female" {

@keyframes colorProgress { 92% { background-color: #FC4C4E; STRABERRY } 84% { background-color: #F25278; PUNCH } 76% { background-color: #F26B8A; ROUGE } 68% { background-color: #FE7D6A; CORAL } 60% { background-color: #FDAB9F; SALMONB } 52% { background-color: #FE7F9C; WATERMELON } 46% { background-color: #FDA4BA; FLAMNGO } 38% { background-color: #F79AC0; BALLET SLIPPER } 30% { background-color: #F699CD; PINK } 22% { background-color: #FCP4AF; ROSE } 16% { background-color: #FD5DA8; BUBLEGUM } 8% { background-color: #FF1694' HOT PINK }

html code <<set $CurOpenness = 10>><<Openness ($CurOpenness, $MaxOpenness, "verticalhealthbar", false)>> <<set $MaxOpenness = 200>> /* Maximum Openness / <<set $CurOpenness = 25>> / Current Openness */

this is the source code I started with <<set $CurHP = 10>><<run Health($CurHP, $MaxHP, "verticalhealthbar", false)>> <<set $MaxHP = 50>> /* Maximum Hit Points / <<set $CurHP = 50>> / Current Hit Points */

reddit.com
u/holzey — 6 days ago
▲ 4 r/twinegames+1 crossposts

Wanderer's Plight (DEMO)

Title: Wanderer's Plight (Demo)

Playable Link: Wanderer's Plight (DEMO) by SellSwordDev

Description: Hey everyone.

I've been making a text-based adventure game using Twine for months now. Thought I'd post it here. It's not finished yet, I'd say 80% of the way there. There's a fair bit of reading, so if that sounds like your kind of game, give it a shot.

You play as a nameless wanderer exploring a chaotic world. Magic shapes the land in many ways. Some use it for good, while others prefer to corrupt those around them. Your goal is to make sense of where you are. Will you fight to the death, or submit to your new overlord?

It's a high fantasy setting, so expect old fashioned shops, spells, character designs and more. Feel free to make suggestions either in the comment section below or my DMs.

The game is completely free to play. Also, it's available on Itch, so you don't need to download anything.

Involvement: I'm the creator of this little game, but I did receive help from Wesp5 (of VTM: Bloodlines fame) with some German translation. Keep in mind that this makes up a small fraction of the game, the only available language is English (for now, anyway). Credit goes to everyone who helped test it out too.

I'm always open to feedback, both positive and negative. If you think it needs work, please tell me!

Free to Play Status:

  • [X] Free to Play
  • [ ] Demo/Key Available
  • [ ] Paid

Enjoy!

u/Frontwingmenace — 7 days ago

I need help for my code

I need help with this menu, for the game I'm making.
The icons don't fit, and it just feels... Off. I'd even rather have the whole icon thing out but it's a template i'm using, and it's by far the fittest.
For the sidebar, i use this :

{(if: $arrows is true)[(replace: ?Sidebar)[]]

}

(append: ?Sidebar)[

(button: "X")|2>[(link-rerun: "Menu")[(show:?1)(hide:?2)]]|1)[(button:"X")[(link-rerun:"Hide")[(hide:?1)(show:?2)]

(button:"X")[(link-repeat: "Save/Load")[{<script>$(".popup").removeClass("open");$("#popup-save").addClass("open");</script>}]]{

(unless:$beginning)[(button:"X")[(link-replace: "Restart")[(restart:)]]]

}(button: "X")[[[Credits->Credits]]]]

](unless: $extra is false)[

|thisisahook>[This space can be used to display an inventory, stats, etc. This template is set up to only display it during the main portion of the game.]

u/LMX-SteveNson — 10 days ago

Help with a code error

Error: <<set>>: bad evaluation: Unexpected token '.' I tried looking up the code error and google said it was likeley a misplaced period. So far I can't seem to find it, if the . is the problem. here is the code </> <<set $backpack to { $pants: [ ] [ ] [ ], $shirts: [ ] [ ] [ ], $panties: [ ] [ ] [ ] [ ] [ ] [ ], $bra: [ ] [ ] [ ], $neckles: [ ] [ ] [ ] [ ] [ ], $socks: [ ] [ ], $shoes: [ ], $sunglasses: [ ], $hat: [ ], $pills: [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ] [ ], $handgun: [ ], $energy items: [ ] [ ] [ ] [ ] [ ], $items: [ ] [ ] [ ] [ ] [ ], $make up kit: [ ] [ ] [ ], $also wik: [ ] [ ] [ ] [ ], $wik: [ ] [ ] [ ] [ ] [ ], $alcholweed: [ ] [ ] [ ] [ ] [ ] }>>

reddit.com
u/holzey — 11 days ago

I turned a Twine prototype into a superhero management RPG – Demo available

I've spent the last months turning a small Twine prototype into a story-driven superhero management RPG.

Today I'm finally releasing the first public demo of G.A.L.A.C.T.I.C.A.L.

It's built with Twine (SugarCube 2), but I wanted to push the engine far beyond traditional interactive fiction by adding RPG mechanics, squad management, boss battles, branching storylines and persistent character systems.

Instead of playing the superhero, you become the Handler responsible for managing a team of unstable superhumans working for a powerful corporation.

Your job isn't just winning battles.

You recruit heroes, handle PR disasters, decide who receives dangerous experimental treatments, keep your team mentally stable, investigate Aether-related incidents, and sometimes choose between protecting civilians... or protecting the company.

Current Demo

  • Story Arc 1–4
  • Multiple recruitable heroes
  • Boss battles
  • Hero loyalty, trauma and corruption systems
  • HQ management
  • Side missions
  • Branching choices
  • English & German language support

I'm mainly looking for feedback on:

  • Gameplay flow
  • UI and readability
  • Combat feel
  • Story pacing
  • Difficulty balancing
  • Bugs or technical issues
  • Anything that felt confusing or unintuitive

This is my first public demo, so every comment—positive or critical—helps improve the game.

Thanks for taking the time to check it out!

Play the demo here:
G.A.L.A.C.T.I.C.A.L. by EDORG GAMES

u/EDORGGAMES — 11 days ago

Icons?

I want to add little icons like this to my twine game, but I have no idea how to.

u/WhyAm__I — 13 days ago

How would you implement companion priorities in Twine?

I'm experimenting with a Twine RPG where companion characters may have different goals from the player.

For example:

  • One companion prefers diplomacy.
  • Another prefers direct action.
  • A third may have personal motives the player doesn't know about.

I'm trying to decide how to represent these priorities mechanically.

Would you track them as hidden variables, relationship values, faction alignments, or something else?

For those who have built companion-heavy Twine games, what approaches worked best for you?

reddit.com
u/Lily_Veiga — 12 days ago

Must have feature set for a Twine for Unity/ Godot library

I'm working on a library that'll let us run a Twine story on game engines (Unity/Godot) that support C#. I want to make the core library open source so that the community can potentially benefit, and I was wondering:

- Is engine support still a problem?

- Is Harlowe the go-to story format for most people?

- What feature set is a must-have (macros, save/load, etc.)?

u/DKrayl — 13 days ago

Basic "return to previous passage" infrastructure?

Hi all. I'm attempting to get back into Twine after a while away and am attempting to create a menu system for a little practice game. Naturally, I need to have the menu return the player to the previous passage, but the only advice I can find on the topic is from this thread from 2019 that references advice from 2016. Is there a modern way to achieve this?

Twine 2.8, Harlowe 3.

reddit.com
u/Deus_of_Ducks — 13 days ago