Is there a way to generate a variable using the contents of another variable?...
I'm trying to create a variable using the contents of a previously existing variable. So in theory: (set $num to "$var") (set (print: $num) to "string") ...would give me a variable $var containing the...
View ArticleChanging background colors in every passage
I am using sugarcube and I want to make the background change color gradually in every new passage, getting slightly brighter or darker depending on the path the player is following. Every single...
View ArticleNewbie Question! How to import images?
I'm just getting started and have created a story and now want to add images. Maybe I'm completely missing something, but I don't see any "Import Image" Menu item. Indeed, I have only two menu items,...
View Article(Harlowe) Back to previous passage macro for my battle system
In my battle system, I want to create a boss that needs certain requirement (e.g. Strength) to be met before player is allowed to encounter him. If player does not meet such requirement, they will be...
View ArticleHow to create an Epub with the most simple Twine file ever
Hello, Actually, this is maybe not the most simple Twine file ever (since I am using the Sugarcube format story), but I guess this is still quite an easy one : there is only two passages and a single...
View Articleiterate through an object sugarcube 2
I know how to iterate through arrays with for loops, but is it possible to do it with objects such as? <<set $char={ stats:{ health:{name:"health",val:90,max:100,min:0,type:0},...
View ArticleDisplaying conditional text/options if a player enters a certain name
Hello - probably a very stupid question, but this is Day One for me so it's bound to be! Midway through my game, I have the user prompted to enter their name. If they have received a clue early on, I...
View ArticleConditional links using Snowman
How can you display different options based on a condition using Snowman? Is there a "showLink()" method, or do you just use "if(this) [[next_page]]"? Edit: Or Sugarcube, either one. I've yet to decide...
View ArticleSugarCube/CSS: Help with changing the background into an image during gameplay
I am not really a CSS Wizard, so i don't really have that many ideas on how to go about this. However the general notion is to change the background into an image, and several images during gameplay....
View ArticleHow do you add information to the sidebar in sugarcube 2
For example, a tab that says people and links to a passage containing people you know that changes as you meet those people, each linking to passage about that person that changes as you learn more...
View Articlehelp with webm files
I found this widget looking at someone else's twine code. <<widget "video">> <<if $args[0]>> <<if $VidForce is 1>> <<print '<video width="320" autoplay...
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 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 ArticleVery 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 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 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 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 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 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 Article