How do you change variables with (if:)
the (if:) statement forces a hook at the end. How do I change a variable with a hook?
View Article[Twine 2.1.1][SugarCube 2.14] Passing anonymous function to a widget/macro...
Hey there, This is more of a cosmetic questions, but still important to me. I'm trying to pass an anonymous function to a widget that would use that function to filter items in an inventory for me....
View ArticleCan't find variable: random
Hi everyone, Having an odd problem as of late (using Twine 2.1.1) I have a common expressions: (set: $variableName to random(0,10)) ~or~ (set: $someVariable to $someVariable - random(0,10)) And both...
View Article[Twine 2.1.1][SugarCube 2.14] Traversing to a passage when a condition is met
Hey there! I'm in the process of creating a way to automatically travel to a location without entering an infinite loop. Now, I've seen two methods of doing this. There's a topic about this, but I...
View ArticleSugarcube Disallow Certain Textbox input
Hello, I am new and using SugarCube 2.14.0 I was watching tutorials but i cant find one on how to make sure that u can disallow certain things to be input into a textbox. Say i am trying to ask for a...
View Article[Twine 2.1.1][SugarCube 2.14][JS] Reading external JSON files and file names
Hey there, I'm researching some way of reading files in the folder where my twine story is. I'm interested in reading my /images and /templates folders. Since my project will probably grow pretty large...
View ArticleHow 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 ArticleHow do I search/replace the passage using PassageDone? [SugarCube 2.1]
I just want to make sure everything following punctuation in a passage is properly capitalized, so I want to run a search/replace regex in PassageDone or postrender. Can someone tell me the name of the...
View ArticleStories are Blank
Hi, I just started using Twine 2. Every time I Publish to File, the resulting story appears blank when I open it in Chrome or Safari (on Mac). The actual HTML appears to be intact, but nothing shows up...
View ArticleHarlowe What to type after an "If" variable, (:if $hassword is "false") = I...
Hello everyone. I'm new to twine and am having trouble with Variables, specifically what to write after the above variable to create a link to another passage. Also if there was a tutorial you could...
View Article2.1.1 Harlowe 2 Debug window covers right side of game text--any fixes?
Hello all, As the title says, the debug window in Harlowe2 lists all the variables in it, which is great, but it is placed over the right side of the text, hiding it. Is there any way to stop it from...
View ArticleIs CSS really working differently with Harlowe 2.0? Help
So I was thinking about converting my big Path of Honors project to Harlowe 2.0 to get the hidden link benefits etc. I changed the story format from 1.2.3 to 2.0 and everything is now a mess that seems...
View ArticleCalling the Save Menu in SugarCube 2
Is there a simple way to call the save system in Sugarcube 2 without using the sidebar? There was an old thread (here) that indicated that this snippet would work from the StoryInit passage, but it...
View ArticleHow to add multiple save slots in Harlowe 2.0 and auto add save/load links on...
Is there a way to add more than one save slot using {(link:"Save game")[ (if:(save-game:"Slot A"))[ Game saved! ](else: )[ Sorry, I couldn't save your game. ] ]} also, is there a way to generate...
View Articleusing symbols with If statements using variable In Harlowe 2.1.1
Ive been having some trouble. I don't know if twine just doesnt support what im trying to do or if there is another way to go about it. basically when a variable reaches a certain point i want...
View ArticleTraverse all passages
I have stuff like: <<timed 21s>> in my passages. Each one has it. Is there a way to traverse all the passages in a recursive manner and calculate the most amount of time that a user can go...
View Article&&& || if statements.
sugarcube 2.17 I've notice that when I and(&&) or or(||) if statements together to make it into one if there is even a simple add or subtraction in the statements they get skipped, or not...
View ArticleChange font color based on variable
Hello, I want to change the color of something I write based on a story variable. For example I could use this: <<if $variable lt 2>><span...
View Articlehaving trouble with basic inventory
Hello I am completely new to this and I have been pouring over forum links and the Harlowe wiki and for the life of me I can't figure out what is wrong. I started with this site which gave the the...
View Article[Harlowe 1.2.3] Startup Passage seems to break formatting on the following...
Hey guys - I've built a passage with all my initialization variables with the startup tag, and it seems to work fine and indeed establishes variables no matter where you jump into the story, but it...
View Article