Does Story.lookup() accept wildcard characters in JavaScript?
I'm using Sugarcube 2.8 and Twine 2! I'm making myself a macro which indexes all the passages in my story and says whether they are tagged or not. Since my titles all have a space in them except for...
View ArticleSimple check ifs
Sugarcube 2 Let's say I have a room with two 'options' - Outside and Light fire If the player hits Light fire I want it to give the response 'No firewood' but ONLY if he hasn't been outside to collect...
View ArticleHow to import a font
How do I import a font please? The wiki refers to "the menu Story > Import Font" but I can't find a Story menu or any menu where this is an option. Can someone help please? Wiki entry I'm referring...
View Article[Harlowe]How to use (if:) and (set:) for different routes that have the same...
The title basically includes what I'm asking, and I have the code here, so maybe someone can try to help me? There were [[boxes|true1a22ab]] laying on top of each other in the corner of the room, and...
View ArticleHow can I create a countdown timer in harlowe that carries over to all of...
I am using Harlowe and I am looking to create a countdown timer for 1 minute that is shown to the viewer, and carries over to all of my passages. I haven't found any that have carried over and it would...
View ArticleSimple 'conditional' game
I want to create what is, on the surface, a simple, minimalist game that opens up avenues and abilities as the player progresses. Trouble is, I don't even know where to begin. It kind of irritates me...
View ArticleHow do I auto generate smartquotes?
I'd like to use: http://smartquotesjs.com/ to automatically convert "dumb quotes" into “Smart quotes”. How do I integrate this library in? I tried just using the instructions that they give, but...
View Article[Sugarcube] Opening a link in a new window
Okay, this may be a dumb question, but I can't find an answer for it, so I'll ask. I want to send people to a survey so they can answer some questions about my project after they finish it, but I want...
View ArticleHaving trouble with in SugarCube 2
Hello, everyone! I working with Twine’s offline editor for Mac, 2.0.11 I believe, using SugarCube 2. I have installed the <<replacelink>> macro set from motoslave.net, and have copied the...
View Article[Harlowe] Checking a variable to see if it's between two numbers
I'm making a game based around a character's opinion of you, and I'd like to have three possible outcomes: they LOVE you ($opinion > 6), they HATE you ($opinion < 2), or they're AMBIVALENT...
View ArticleIs it possible to use passage tags to style tw-story or tw-passage? Harlowe...
I've successfully changed my background image depending on passage tags. I'd like to also make some adjustments to the CSS of the tw-story or tw-passage elements. Is that possible? Could I do something...
View ArticlePrint message when option is clicked?
Sugarcube 2.0 Sometimes I'd prefer a message to just show up on the same page when a player click an option, instead of the link taking them to a separate passage. I know there's <<print>>,...
View ArticleChanging passage description depending on conditions
Sugarcube 1.0.34 If I have a passage called 'shack' with the description, "A small shack. Winter approaching. Room is freezing." How would I change that description so that it reads, "A small shack....
View ArticleDoes Desktop Twine save automatically?
I was just making some adjustments to my game using the desktop version of Twine 2 and closed without remembering to do a 'publish file' to over-right the old file. I re-opened the program fearing I'd...
View ArticleProblems trying to have variables + changed path depending on history of...
Hi! I'm quite new to Twine, and have expectedly come across a few problems. I've searched the forums and wiki but can't find a solution to my problem. I'm trying to get variables and.. I think the...
View ArticleHelp with making random passage destinations less random (Harlowe 1.2.2,...
The basic set-up: I have a maze-like area, with a "hub" room that randomly leads to one of 10-ish other rooms. Using (either: ) means each of those rooms has a roughly equal likelihood of being found....
View ArticleHow to not put a function into a variable
Greetings. I'm constantly getting the problem of being unable to distinguish whether the variable is going to be set to a value or to a function itself. Usually it takes me some time to try all the...
View Articlehow can i implment dropdown list in sugarcube 2
i would like user to select one of the values from a dropdown. they will eventually be navigated to a passage which depends on the value they chose. how do i implement this in sugarcube 2/twine 2 thanks
View ArticleModify Twine 2.0.11
Hey guys ! I'm trying (with a friend) to modify Twine 2.0.11 to add some features. The problem is that we don't know where to start in the code. We are quite new to this kind of project. So is there...
View ArticleRemoving the undo and redo buttons in Harlowe.
Is there some way to remove/disable the arrows that allow the player to move backwards and forwards through areas they've previously visited? Using the Harlowe 1.0.1 format in Twine 2.0.1.
View Article