How do you regex an entire page before it outputs to reader? [Sugarcube 2.1]
Hi. Thanks for all your help. I've been writing stuff using a lot of twinescript and I just realised I need to run a regex at the end to clean up some grammar mistakes. Is the text printed into...
View ArticleWhat is the scope of variables created in passages vs. story javascript?...
Hello all, I just started experimenting with Twine/Harlowe and noticed that a variable that is set in a particular passage seems to be forgotten after the player hits the 'back' arrow (Harlowe's CSS...
View ArticleChanging days on life sim games
Hello. I am new to Twine( I am using Sugarcube2.14) and wanted to develop a life sim game. It is pretty simple and has only 2 locations right now so it isn't that complex. However I can't wrap my head...
View ArticleTutorials for french-speaking Twine users
A blog about Twine in french, including a very complete tutorial : https://www.bac-a-sable.eu/ ______________________ Ce petit mot pour vous présenter un blog en langue française, dédié (entre autres)...
View ArticleMAN/WOMAN
Hey I've made another game with Twine, this one's a bit more experimental than my last one. This one is for the One Game A Month Challenge, too. The topic was GENDER. I've tried to give the player a...
View ArticleError: cannot execute macro : Cannot read property 'length' of undefined
I need some help with a script i'm attempting to use from this site : http://strugglingwithtwine.blogspot.co.uk/2014/03/strategy-games.html It gives me the error message: Error: cannot execute macro...
View Article[harlowe] How can I round a random number without it showing when I test the...
Let's say I generate a number as part of an equation that makes it very likely that it will have a decimal. How can I round it down (that is, disregarding the decimal part) without it being printed...
View ArticleAnimista, a CSS effects playground
Maybe this will be useful for somebody - a webpage where you can test various css effects, and generate code to use them: http://animista.net/
View ArticleHelp debugging this HTML please
Hey! I'm still pretty new to Twine and teaching myself basic HTML and CSS. Wondering why this piece of code isn't working? Have tried debugging myself to no avail. <div class="fade-in...
View ArticleWhat's the deal with (display:) and computed values?
Hi everyone, I only post as a last resort. This is driving me insane. the code: (set:$Selection to "(Print:($Options's 1st's Page))") $Selection (display:$Selection) evaluates to:...
View ArticleAnnouncing 'Saving Mikey', a Twine game for smartphones
Hi Guys! I would like to share with you the trailer of our "interactive fiction" game: Saving Mikey! Our concept is simple: Saving Mikey is a chooseable-path adventure game built on plain text messages...
View Article[Sugarcube 2.16.0] Pluck a tagged passage from an array
I have several passages with several tags like this: :: Event1 [event suburbs] My sidebar uses tags().includes("event") check to show some special info, and that works fine. However when I try to get...
View ArticleCreating If Else Statement
Hey! I'm trying to use If Else statements to display particular passage text depending on the player's previous choices. Passage C is reached by the player through Choice A or Choice B (this has a...
View Article[harlowe] multiple conditions in an if macro
i'm trying to make a customizable point buy calculator - right now, this is my code: POWER: $statPWR (if:$statPWR is < 16 and $pointTotal is > 0)[(link-repeat:"[increase]")[(set:$statPWR to it +...
View ArticlePrevious function doesn't work
I would like one of my passages to have a "Back" link that takes the user to the passage they viewed immediately before. The twine wiki tells me that the following code is what I need....
View ArticleMissing Hook - Ignoring Conditions Except When They Apply
I want a click ignored if a hook isn't present: (click: ?Bunyon)[(if: $located is "Quicksand")[(goto: "Lakeside")] This works when the hook is present, but when it isn't says - The (click:) command...
View ArticleNew Version of Twine 2.0 Not Working
Hi all, I've just, to my regret, installed the latest version of Twine 2.0 on my Windows machine. On starting it up I get the following error: Message: Cannot set property 'id' of undefined File:...
View ArticleWeird Visual Bug
Not sure why, but the sidebar in the editor is overlapping the text margins. It's not a big deal but it is kind of annoying. Any idea how to fix this?
View ArticleHow do you print macros inside links?
I am using SugarCube 2.14.0 . Right now I am working on a new project on my own and I am trying to make a macro show right in a link. This is the one im trying to use: I am thin for my height of...
View Article[harlowe] How to add comments to my passages?
I'm trying a new game, but it's becoming so complicated that I rely on memory to know what each passage does and why. Is there a way to add comments, like you can in other languages?
View Article