Very new to programming. How to call on random images
Random gifs or photos is what Im trying to accomplish. Heres what I have so far. <<set $image = either("image1.webm","image2.jpg",image3)>> (print: '<img src="' + $image + '">')...
View Article[Harlowe] Auto-save feature
Using Harlowe version 1.2.2 I want to let my story auto-save on every new passage, thus I'm thinking of having that stuff included in the Header. However, I don't want the auto-save to trigger at all...
View ArticleAbandoned Harlowe Stylesheets - Free To Use!
Howdy! I recently tried my hand at creating my own Harlowe CSS. I never got very far with them, especially when I ran into trouble identifying specific selectors, so none of them are perfectly skinned....
View ArticleDistance Matrix - Sugarcube
Hi My son and I are trying to write a trading game, similar in format to Drug Wars, but without the drugs and set in feudal Japan. The idea is to move from place to place buying and selling goods,...
View ArticleExternal Link to the Story
It's Posible tu use a external link to a specific passage of the story? I'm trying to make a live story with QR codes and it would be great
View ArticleChecking the history for previously visited passages.
Hi, Newbie here. I'm using Harlowe and I'm trying to trim the exit links of passages in a Twine-based book so that they only show passages that the reader hasn't already visited. I've tried both the...
View ArticleBackground images: css vs html tag
I am trying to set a background image for all passages in place of the default black but I can't seem to get the css to work. Only html <img> tags show my intended image and the dimensions still...
View ArticleI need help with problematic CSS code, and posible Twine 2 harlowe bug. [SOLVED]
Hi!, I have a CSS styling that works as intended when I hit the Play button in Twine 2 online editor, but when I publish the game, the CSS code just don't work. What I'm trying to do is a responsive...
View ArticlePlacing a text form into a variable
I created a text box form in one of my Twine passages using HTML5 syntax. It looks like this: <input type="text" name="your name" size="30"> How can I place user's input text into a variable? The...
View Article(Harlowe) My variables never seem to work.
Here's my text in a Twine 2 story using Harlowe. (if $hasgrenade is true)[Grenade!] However, once I test it, it always shows this instead: (if 0 is true)[Grenade!] What am I doing wrong here?
View ArticleHelp with creating a text frequency algorithm in twine
Hi, so I'm trying to build a version of an nth order frequency text scrambler in twine using Harlowe and its internal coding. I thought it would be possible without resorting to javascript, but am a...
View ArticleReading through Sugarcube 2's macro documentation
I came across this . Can someone explain the what and why here? What does "..." do and http://www.motoslave.net/sugarcube/2/docs/macros.html Passing an expression as an argument. ... For example, the...
View ArticleHow to work with large numbers of randomly generated NPCs
Hi guys, apologies if anything I ask below seems obtuse. I've tried searching various forums without any real success, but I'm not a coder so I'm struggling either way. I'm using Twine 2.x and...
View ArticleAccessing Passage Contents Via JavaScript in Sugarcane
I'm not sure if this is possible, but I've been playing around with adding a sidebar to the right of my passage through appending a div element, and it seems to work fine....
View ArticleHow do i move my text!!
Hi everyone ive been using twine for about a month now and ive been developing a game called "Ressurection city", and i want to make my game look nicer so i wanted to make a cool main menu but i dont...
View Articleendif in 2.0?
What happened to endif: in Twine2? I'm trying to have two different displays depending on whether or not you have a key. (if: $key is "yes")blah blah (if: $key is "no")blah blah blah It shows both...
View ArticleLoop for a limited number of times
I am a complete coding beginner and have spent some time searching the archives but I can't seem to find an answer. I'm using Harlowe and trying to write a passage that loops for a fixed number of...
View ArticleIs there a way to get the same audio file to play across passages? (Harlowe)
I can get an audio file playing using HTML, but it turns off as soon as I change passages. Is there a way to get the same audio file to keep playing even when changing passages? I'm sure it has to be...
View Article(Harlowe) Performing math with random variables
(click: "crumbs")[''You collect some crumbs!''(set: $Cdrop to (random: 1,4))(set: $Crumbs to "$Crumbs + $Cdrop")] As you can see, I am trying to make a random drop system that adds to the overall...
View ArticleHOW DO I UPLOAD IMAGES ON IOS!!
Help please tell me how i upload images on my ios! My story format is halowe 1.2.2
View Article