Sugarcube 2.7.0 If conditionals with two textboxes and multiple variables
Hello all, I've got a couple of textboxes where users enter answers to questions. 31. Write the <b>first name</b> of one student who //passed// the session: <<textbox "$q41"...
View ArticleNew to Twine - Making a click for each array element
Greetings, I've recently started using Twine 2 Harlowe and I'm having a blast! Such a great engine! But I cannot understand how to make the final feature to my first project. The thing I'm working on...
View ArticleHow to make a nested if function in harlowe twine 2.0
I was trying to make a rank up system in my game where with every certain number of wins players will rank up to the next rank I was able to make a variable and a simple if function as so: (if:...
View ArticlePassage Help - Hiding some text in a long passage then replacing the visible...
In effect, make it look like we've gone to another passage, but all we've done is replace the text in the first part of the passage with the text that we previously hid? Using Sugarcube 2.5?/Twine 2....
View ArticleIs there a way to cache audio for harlowe 2.0
I have added st to my game but one problem arises is the lag I've heard that sugar cube can do it so I tried switching but the game got fucked up none of the coding works so I had to change back if you...
View Article[Online version] - Upload my story to a different PC
Hi, this is probably a dumb question, but I looked for an answer (here and in the Wiki) and couldn't find one. I'm trying to publish to file one story I am working on at the office and have it uploaded...
View ArticleCalling js functions in Twine 2 Sugarcube without macros, is it possible?
I've been attaching js functions to the global window object, and I'm able to call them: -when setting a return type to a variable <<set $var to myFunction()>> -or when going to another...
View ArticleIs there a way to determine the 1st character of a variable's output?
Kind of an awkward phrasing, I know. Here is what I want to do: I have $variable (which, if it helps, is set to a numerical character.) and I want to make several (if:)'s that link to different...
View ArticleFun With Datasets in Harlowe
I'm working with datasets and I have some questions. First, is there a way to print the contents of a dataset for debugging purposes, or else some other way to decipher what's currently contained in...
View ArticleFun with Datasets pt. 2 (Harlowe)
Okay, why does this: (set: $data to (a:1,2,3)) (set: $set to (dataset:)) (set:$set to it + (dataset:$data)) (print:$set's length) (set:$set to it + (dataset:$data)) (print:$set's length) (set: $choice...
View ArticleCan You Change The Background Image?
I am using Harlowe, and I'm wondering if you can import (or something) an image into your story and make it a background image. I know you can change the background to different colours, but I recently...
View ArticleHow to create consumables in an rpg twine 2.0 harlowe game
Basically it's as the title says I want to create ...., I can easily create a health potion that can be used in-battle but it gets more complex with an attack potion, xp potion or coin bonus as they...
View ArticleHow do i fix my name input problem
Hey i really need help with this! I use harlowe. This is the problem: (put: (prompt: "What's your name?") into $name) Your name is $name. When i do it just says 0 instead of the name.
View ArticleImport Images In Your Files
I know how to get images from the internet by getting the URL for them, but I have created a picture that I would like to import into my story from my files. Is that possible, or would I have to put it...
View Article[harlowe] How to get the "random" command to substract/add a random...
I'm trying to cause it to give me a number stored in $variable1, to which it should either add or substract a random percentage. In this case, something in between -25% and + 25%. ($variable1 +...
View ArticleHow to create real time rpg battles in harlowe 2.0
its relatively easy to create rpg battles but the problems lies in you having to press fight over and over again that's boring, so I'm trying to make it so it automatically keeps pressing fight but I...
View Article[Twine2, Harlowe] Basic question: How do I say "(if: one of these is true)"?
Hey ya'all, just writing my first Twine thing and as I am generally not a master of coding (and to be honest, a bit logically impaired) I have some very simple things breaking every now and then....
View Articlehow to use the setInterval function in harlowe twine 2.0
I don't know to correctly use the function so I can have an action repeat itself automatically every 1s interval
View ArticleNeed help from JavaScript pros! [Twine 2 / SC]
Hey everybody, lacking deeper knowledge of JavaScript I am facing a major problem here: For an educational game I want to include passages, in which the users have to drag and drop words into the right...
View ArticleImage as link when image is external/hosted elsewhere?
Pretty simple question here... (I hope) Using Twine2/Sugarcube1, I want to make the image be a link. I get that what I'd typically use is this: [img[images/example.png][Passage]] ...But what do I do if...
View Article