r/twinegames • • 12h ago

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

Post image
14 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 • • 23h 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.