Quantcast
Channel: Twine Forum
Browsing all 3830 articles
Browse latest View live
↧

getElementByID("ID").style.backroundImage = url(img) doesnt show in browser

So, I wrote a short script, by which depending on the race the player chooses the backgroundimage is surposed to change: <<script>> document.getElementById("map_1").style.backgroundImage=...

View Article


[Sugarcube 2.16.0] Replace text during page render

I've been using the standard link replace which I love once I got the hang of it. But I was wondering how I could go about modifying the contents of an element during render. What I mean is say I'm...

View Article


Visited links: controlling colour

Apologies if this has already been answered, but I haven't managed to find it. I'm working with Harlowe in Twine 2.1.1, and I have added some simple code to the stylesheet to keep all links the same...

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 Article

[SugarCube 2.14] Dynamic variables in textbox?

Hello, I am currently writing a widget for a trading system and have run into a bit of an issue passing variables to a textbox within the widget. My integer variables in the passage are _NumGeneral,...

View Article


Twine 2, Harlowe

{ (set: $alpha to false) (if: $alpha)[The quick brown fox jumped over the lazy dog.]\ (if: $alpha is false)[The lazy dog failed to jump over the quick fox.\ [Give the dog a rest]<rest_dog|...

View Article

Harlowe 2.0.0, Twine 2, Help with whitespacing and embeded Hooks.

Hello there, Recently new to both programming and Twine. I've been working on a small project now for a month or so. Slowly getting through the macros, trying to deploy them in various ways. I've now...

View Article

Help 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 Article


Random Damage

Using the set up outlined here, is there a way to make the player and the enemy's damage output random instead of a set number?

View Article


Creating 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 Article

Triggering a twine sugarcube widget with javascript?

Hello all. Simple question... how do I trigger a twine widget from pure javascript code? setup.enemycd = function () { var elem = document.getElementById("enemycdbar"); var width = 1; var id =...

View Article

Help 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 Article

Help 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 Article


[SugarCube] actions macro eliminiates all links to the same passage

Took me a bit to figure out why all my links were disappearing: I'm using the <<actions>> macro to give different actions (set with a variable) to use in another passage, like so:...

View Article

Image may be NSFW.
Clik here to view.

the software don't work

hello ! i just download the software and it's worked in first time to see how it's work ,but, it closed after 10min and now it don't want to work anymore and it give that window and close

View Article


Image may be NSFW.
Clik here to view.

Harlowe 2 Passage editor bug?

Help, this is driving me crazy: Does it only happen to me?? That "line count dot" hides the text I'm writing it REALLY bugs me. Only happens with Harlowe 2. Happened to me on the online editor, with...

View Article

How to make a time system?

Hi everyone, I'm having a lot of problems trying to make a time system for my game. I want a sturdy time system because I want to make a business managment simulator kind of game, so I have to keep...

View Article


Any way to re-enable automatic passage creation in Twine 2.11?

I've been messing with Twine for a while, and one of the features I really enjoyed in previous versions was that Twine would automatically generate a new blank passage if you put something in a passage...

View Article

[Sugarcube 2 2.14.0] How do I build a generic item shop?

Hey lads, I'm trying to build an RPG of sorts, and want the player to be able to visit a shop and buy and sell things. For this, I have created a passage called TestItems, which looks like so:...

View Article

Twine is refusing to open, then quitting.

Just having responded to someone on this forums, having played round with a solution on twine. (Twine 2.1.0) I decided to check out Harlowe 2.0.0 and check out experimenting on format change. I...

View Article
Browsing all 3830 articles
Browse latest View live