Questions tagged [twine-game-engine]
15 questions
2
votes
1 answer
Multiple users collaborating on Twine project
Is there any (smooth) possibility for multiple users to collaborate on a Twine project?
I've just been introduced to twinery.org, and thinking about the possibilities of using it to teach programming in basic school. My colleagues and I thought it…

Wilhelm
- 21
- 2
1
vote
0 answers
Having trouble embedding audio with HTML from OneDrive - why will audio only play from temp files, and how to fix for public use?
I'm making my first Twine game as part of a portfolio, and I wanted to include background music that autoplayed using HTML. I've been linking images from OneDrive fine, but the only way I can get the music to play once I've published my file is to…

Angel E.
- 11
- 2
1
vote
1 answer
Changers like (if:) need to be combined using + between them
I'm using Twine to try and make a simple game, and I need an if statement that checks a number variable and a Boolean
The code looks like this:
(if:$money >=20)(if:$BPV is false)[[Buy some armor]]
And Twine outputs this when I try and play the…

Dime
- 11
- 2
1
vote
1 answer
Twine Sugarcube, limiting player stats
First of all I'm quite new to Twine and Sugarcube but I've found my way until now but now I've been struggling to find and answer to the below issue:
I have a character that has several stats like strength and energy.
I use them like this:
In the…

Dave
- 11
- 1
1
vote
1 answer
Twine CSS transitions everything on div except movement
I'm working in Twine (version 2, Harlowe 2.1.0) and I want .choices to smoothly move to the right when I hover over it. Every other transition on .choices works fine, but for some reason, movement is the only one to just switch between states. I've…

Vincent K.
- 13
- 2
1
vote
1 answer
How to style individual passages with CSS in Twine? (Sugarcube)
I'm currently doing a project in Twine and am using the Sugarcube format. I can't figure out how to style individual passages using CSS. I've tried creating classes in CSS and then tagging a passage with that class's name, but it won't work.
user9627375
0
votes
0 answers
How to use VSCode with Twine Snowman
I am using Twine 2 with Snowman 2.0.3 to write an interactive novel and I find it extremely hard to use the IDE editor for markdown and Javascript, so I effectively maintain a separate VSCode project where I write all my markdown/code and then…

Zehanort
- 458
- 2
- 10
0
votes
0 answers
Button in for loops Twine 2.3.14 SugarCube 2
Edit:
Solved it after some more trial and error.
I needed to "capture" the variables first:
...
<>
<> <>
<

Brutecatus
- 1
- 1
0
votes
0 answers
Embedding & Running a HTML File on a Wordpress Website
I have developed a text-based computer game (with Twine) - this is output as an HTML file. I would like to embed this file on a wordpress website so that it can be played regularly.
There is a wordpress plugin (Embed Twine) that makes this possible,…

clayman22
- 1
- 1
0
votes
0 answers
How to get Twine (Sugercube 2) Variables to work in @@Custom Style;Text@@
I have a widget where I make my dialogue boxes. I want to have args[0-3] represent differences in CSS Styles, like Border Color and background colour.
I have something among the lines of this:
<>
<>
<

Oktu
- 1
- 1
0
votes
0 answers
Set initial scroll position failed
I'm using Twine, and I'm using this code to try to set the initial scroll position to the middle:
var scrollToMiddle = ($('#view')[0].scrollWidth - $('#view').width()) / 2; $('#view').scrollLeft(scrollToMiddle);
But it gives me the error: "Cannot…

Patrick Lauser
- 3
- 1
0
votes
1 answer
Sugarcube make a random image appear
I'm actually trying to do a random image picker to make the game more real.
here is the actual code
<>
[img["home" + $randomimage.jpg]]
I'm only an amateur but it seemed logic to do it that way for me but it appears…

volen
- 23
- 3
0
votes
1 answer
TWINE game localisation
Do anyone know if it is possible to localise a TWINE game? I’d like to have my interactive stories in all the Scandinavian languages. I also plan to have mp3 spoken narration in each language for non-readers at a later stage. My thought was to maybe…

lpmathiasen
- 31
- 1
- 4
0
votes
0 answers
Twine: How to create click link for number variable
The Problem lies at where i do the score editions, $numOrder is equivalent to a orderedArray of c1 c2 c3 but i can't seem to use them as hook for click. The error message says it expects a ?this or string. Can click hook be a number?
(print:…

Jerry Sui
- 25
- 4
0
votes
0 answers
Using JavaScript with Twine; syntax for variables
I'm reasonably comfortable with JavaScript, but new to Twine, which is sort of a shortcut platform for making interactive, branching stories/games. The Twine forum does not appear to be heavy on coders, so I'm hoping someone over here can help me. …

poetiscariot
- 189
- 1
- 2
- 12