random and fixed variable
Hi, So I want the player see randomly the sentence first, and when he has seen it, always see it. The fact is : it's always random. Here is the code : <<if $Observant>=random(100) ||...
View ArticleClocks still driving me nuts
Made with Twine & SugarCube SugarCube (v2.0.0-beta.4) So I've been messing around with every type of clock on here for the last week. Most I've figured out, but the base java one I still can't...
View Articlerandom goto (Sugarcube 2)
One easy thing for a programmer. One difficult thing for me. I would like to make a random goto. I tried this one, but it doesn't work: <<goto either("kitchen", "garden", "cellar")>> (This...
View ArticleUsing Twine for collaborative writing - Guidance needed (SC 2, PHP)
Happy new year, everybody! As a language teacher, I started using Twine for collaborative writing in class and have my students alternately write different threads of interactive fiction. Until now, I...
View Articletrying to get a transition to work on a link - Harlow
Hi I'm trying to get something like this: (live: 1000ms)[ (stop:) (t8n: "dissolve")[This text appears with a delay and a dissolve transition] ] to work on a passage link but with no success... I don't...
View Article[Sugarcube 2] %chance (not random) for goto different routes
Hi guys, i'm total noob, so i asking about someting what i don't know "how to make". First i was started go with tutorials, documentations and forums solutions with all past problems [maybe somewhere...
View ArticleExtracting a saved file from the game?
I have 2 weird questions (I am using Twine 2.0.11 and Sugarcube 2.12): 1.) Is it possible to retrieve a saved file from the twine game on its own? 2.) I tried checking the saved file for my twine game...
View Articleclickable "Hint"-button in almost every passage (SugarCube 2)
Hey everybody, I am in need for orientation for the following problem: I want to have a "hint" button in almost every passage which opens a <div> with a hint on how to solve the passage's task....
View Article[Sugarcube] remove macro not working
Hello everyone, I'm trying to get Sugarcube's remove macro to work. Even if I use the example code in Sugarcube's documentation, which is I'd like a <span id="huge-cupcake">humongous...
View ArticleHow to add music to story in sugarcube?
Hi, I'm new here. I've never used Twine before. I want to add music to my story. But I don't have any idea how to do that. Can you please help me?
View ArticleUsing Click Macro to populate array
SugerCube 1.x I need functionality to allow player to select multiple inventory objects within the same passage. I'm guessing the Click Macro is best suited for this. If so, how do you structure the...
View ArticleLinking Twine to email server
Hi - I've been using Twine for a little while. My skills are very limited, but I'm a fast learner - however, I do have a situation that has left me stumped. I've created a decision tree using the...
View ArticleGoto a new passage with JavaScript
Twine 2.0.11 - Harlowe 1.2.2. I'm using JavaScript to score points in a multiple choice test. I want to go to a PASS passage if the score is high enough and to a FAIL passage if it isn't, and I'm not...
View ArticleTriggering events with tags?
Hello, I'm using Sugarcube 2 in Twine 1.4.2. and I'm very much a newbie, so I'm sorry if this is a stupid question. Is there some way of having a specific set of macros run whenever the play arrives at...
View ArticleDOS >_ symbol for inputs
Sugarcube 12.0 Would it be possible to style the text input field to look like the old DOS style, i.e >_ - where the underscore is blinking? I already know how to hide the borders/background for the...
View ArticleVariable as widget argument? (Sugarcube 2)
So I don't know if this can be done: I'd like to make a widget that sets a variable to a particular value, and lets me choose which variable every time I use it. But I can't do: <<widget...
View ArticleSugarCube releases
I figured that I might as well post a note that I've just published a new release of SugarCube for those of you using it.Highlights: Added dynamic updating to several of the page elements within the UI...
View ArticleThe (if:) command should be assigned to a variable or attached to a hook.
Hello,i was trying to replicate the code in this video but i keep getting "The (if:) command should be assigned to a variable or attached to a hook but i checked all the code like 3-4 times to see if...
View ArticleSugarCube 2.12.0 — "seek to X seconds" in audio macro not working, possible bug?
I think I have encountered a bug with the audio macro. I am attempting to use the code audio "Track" time 60 loop play (obviously with brackets) and it isn't beginning playback 60 seconds into the...
View ArticleIs there a way to force the sidebar to update via click/link/timed macros?
I'm using StoryCaption to display some character stats such as $PC.strength and have a clock variable in StoryBanner. I want to make it so that those update when I make changes that don't trigger a...
View Article