[harlowe] How can I round a random number without it showing when I test the...
Let's say I generate a number as part of an equation that makes it very likely that it will have a decimal. How can I round it down (that is, disregarding the decimal part) without it being printed...
View ArticleHelp debugging this HTML please
Hey! I'm still pretty new to Twine and teaching myself basic HTML and CSS. Wondering why this piece of code isn't working? Have tried debugging myself to no avail. <div class="fade-in...
View ArticleWhat's the deal with (display:) and computed values?
Hi everyone, I only post as a last resort. This is driving me insane. the code: (set:$Selection to "(Print:($Options's 1st's Page))") $Selection (display:$Selection) evaluates to:...
View Article[Sugarcube 2.16.0] Pluck a tagged passage from an array
I have several passages with several tags like this: :: Event1 [event suburbs] My sidebar uses tags().includes("event") check to show some special info, and that works fine. However when I try to get...
View ArticleCreating If Else Statement
Hey! I'm trying to use If Else statements to display particular passage text depending on the player's previous choices. Passage C is reached by the player through Choice A or Choice B (this has a...
View ArticlePrevious function doesn't work
I would like one of my passages to have a "Back" link that takes the user to the passage they viewed immediately before. The twine wiki tells me that the following code is what I need....
View Article[harlowe] multiple conditions in an if macro
i'm trying to make a customizable point buy calculator - right now, this is my code: POWER: $statPWR (if:$statPWR is < 16 and $pointTotal is > 0)[(link-repeat:"[increase]")[(set:$statPWR to it +...
View ArticleMissing Hook - Ignoring Conditions Except When They Apply
I want a click ignored if a hook isn't present: (click: ?Bunyon)[(if: $located is "Quicksand")[(goto: "Lakeside")] This works when the hook is present, but when it isn't says - The (click:) command...
View ArticleNew Version of Twine 2.0 Not Working
Hi all, I've just, to my regret, installed the latest version of Twine 2.0 on my Windows machine. On starting it up I get the following error: Message: Cannot set property 'id' of undefined File:...
View ArticleWeird Visual Bug
Not sure why, but the sidebar in the editor is overlapping the text margins. It's not a big deal but it is kind of annoying. Any idea how to fix this?
View ArticleHow do you print macros inside links?
I am using SugarCube 2.14.0 . Right now I am working on a new project on my own and I am trying to make a macro show right in a link. This is the one im trying to use: I am thin for my height of...
View ArticleKeyboard commands in Sugarcube
Hey, so I'm currently using Sugarcube 1.0.35 on Twine 2. I was wondering if there's any possible way to switch to a certain passage if you hit CTRL+ALT+T on the keyboard (at any time). I know this is...
View Article[harlowe] How to add comments to my passages?
I'm trying a new game, but it's becoming so complicated that I rely on memory to know what each passage does and why. Is there a way to add comments, like you can in other languages?
View ArticleDay/Night and Seasons, How would I Implement with widgets?
Hi, Ive been racking my brains for several hours with this thinking of different ways to do it without too much javascript as my skills with it are pretty basic. I would like to count the turns using a...
View ArticleEvent trigger after a set amount of time? (SugerCube)
Heya, so I'm trying to create an event that appears after a certain amount of time in-game has been reached (using the Javascript shown here). For example: I would like that after 1 week in-game has...
View ArticleSetting variable values within a single passage
I am trying to replicate the menu-based conservation model from Inform 7 in Twine 2.0. I am using Harlowe. While I think I understand how the (set:) macro functions, I cannot figure out how to trigger...
View ArticleHow do I print text based on what the last passage visited was?
I've been googling around for this for a bit now, and can't seem to find the answer. I have a feeling it must be pretty simple, and has probably been asked and answered somewhere (link me please!), but...
View ArticleHow do I print text based on what the last passage visited was?
I've been googling around for this for a bit now, and can't seem to find the answer. I have a feeling it must be pretty simple, and has probably been asked and answered somewhere (link me please!), but...
View Articleneed help organizing data (Sugarcube 2.6)
Hey everybody, I wrote a little quiz game, which I am not unsatisfied with. I have my passages, which hold the quiz questions, organized like this: 0x0 0x1 0x2 0x3 0x4 0x5 0x6 etc. 1x0 1x1 1x2 1x3 1x4...
View ArticleHow do I print text based on what the last passage visited was?
I've been googling around for this for a bit now, and can't seem to find the answer. I have a feeling it must be pretty simple, and has probably been asked and answered somewhere (link me please!), but...
View Article