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

What chance a parser version of Twine?

$
0
0
I suppose I'm directing this at The Mad Exile, but is there even the vaguest thought anywhere that you may one day release a parser version of Twine. I can't imagine the work that goes into something like this, and I imagine a complete re-build would be required, but is there any chance at all?

Is there anyway to completely disable the whitespace/line breaks in Harlowe?

$
0
0
So I am working with Harlowe and it seems every time there is a line break in the code it adds an empty line, including below text. I really don't want this effect. I am aware you can manually get rid of the space using these { } and other escapes, but it is a pain to add those to every passage, and changes the color of my code.

Can you disable this attribute entirely in your CSS?
This way I can manually add linebreaks with <br>, more like normal html.

Okay, there's $currentPassage, but is there also a $previousPassage?

$
0
0
Hi!
My last thread got no answer so I started to painfully look into the code from scratch, and I wondered one thing. Sorry if that's a noob question, but if there is a $currentPassage is there also a $previousPassage? I couldn't find any information on $currentPassage on the wiki, and I couldn't find a list of things similar to it (I don't even know how to call these things that start with a $).
Basically, I'm trying to find a way to show choice history on screen and I wondered if a $previousPassage would do the trick.
Thanks!

Abandoned Harlowe Stylesheets - Free To Use!

$
0
0
Howdy!

I recently tried my hand at creating my own Harlowe CSS. I never got very far with them, especially when I ran into trouble identifying specific selectors, so none of them are perfectly skinned. However! I imagine that, with a little TLC from someone who knows better, my little experiments might be useful.

You can grab them all on itch.io! Read on for screenshots.

TBOj%2B4.png

1. FIRST ISSUE. A style inspired by comic books. I abandoned this one pretty quick, but then, it was also my first attempt. Hopefully you can still make something out of it!

wBqemF.png

2. STARRY SEA. This one's supposed to have a sort of romantic-futuristic vibe.

aI5mFl.png

3. VINTAGE LETTER. Getting the story to extend all the way to the bottom of the page took me several hours and a thorough scrubbing of the internet. I ditched this one out of rage. I don't ever want to touch it again, haha.

EcUjYB.png

4. FROSTY FLOWERS. Inspired by cute visual novels/stationery. This might be the only one I actually like. Incidentally, it's also my most recent experiment! Hmm.

Twine 2, Sugarcube 2: links broken at birth

$
0
0
Hi,
Im coming back to Twine after about a year's absence and am having even more problems than a did a year ago. So this is a real newbie question: I'm starting a new story and create two choices for the reader about what link to follow (Im using Twine 2 with Sugarcube 2):

[[Start the game with a terrorist attack | terroristBomb]]
[[Start the game with a missile attack | missileAttack]]

Twine creates both subsequent passages but when I try to run it, it says they dont exist. Whats going on?
thanks!

Updating variables?

$
0
0
I'm using Twine 2.0.11 and Sugarcube 2.12.0

I'm using a rpg system and some of my variables (player HP, etc.) isn't updating - I use the display macro to show the stats in multiple passages. When I switch to a new passage it goes back to the old variable and ignores the most recent passage I used.

Is there a macro available just to update the specific variables? Thank you!

My solution for using scripted actors in Twine games

$
0
0
Required:

• Twine
• Internet connection
• Audacity with mp3 exporter addon installed.

Not suggesting for one second I'm the first to have this idea, but I've just spent a good few hours searching for a sound clip of a woman saying "Warning! Oxygen levels critical!"

As you might expect I drew a blank everywhere. And then the solution hit me.

This would work best if your game uses limited dialogue, but if you go here: text-to-speech you can type in your lines and have a variety of voices speak it out loud. The voices sound quite authentic and there's a variety of effects that can be added.

Imagine how good this could be if you're making a sci-fi game with an android as one of the characters?

Simply hit the record button in Audacity, run the text-to-speech, and then trim it up in Audacity before exporting as an mp3.

In my case it was perfect, as I needed an automated voice anyway. I added the reverb effect and it sounds very good indeed.

New Game Plus in Harlowe / History Erasure

$
0
0
Hi all,

I'm currently using the (history:) macro to track if players have interacted with NPCs in the story I'm writing. It's a lot more convenient than setting flags for every event. However, I'm aware that I want to do a new game plus once the game is over, and restore the players to the start with a fresh slate, sans a few variables. Basically, I want to remember the endings they've seen and tick them off on a list, so they can see which ones they've already achieved. Also, I might potentially want to carry over their money.

If I just loop them back to the beginning, though, I'm pretty sure all the (history:) and ticked macros will be the same... which means it's going to cause all sorts of chaos on a second playthrough. Is there a way to erase mostly everything without losing a few key variables? Right now it seems to be either 1) Keep everything or 2) Lose everything.

I can see resetting every variable tracked on a new game and just not using (history:) as an option, but resetting that many variables is going to be a serious headache.

Would really love some help on this. Using Harlowe & Twine 2.0

Using if statements inside of a print command in sugarcube

$
0
0
So in sugar cube you can use the <<print either("a","b")>> command to randomly select one of many options. Is it possible to use an if statement inside that? Like <<print either("a","<<if_____>>b<<endif>>","c")>>
I want one of the potential random events to happen only if the player has failed to avert a previous crisis.

"Don't Move"?

$
0
0
Hello, Twine Community! I just posted this as a discussion, but I realized I should ask it as a question.

I am a relatively new Twine writer, and I'm currently working on a big project. I wish to adapt the video game Until Dawn into a text game personalized using my friends and I as the main characters.

One major gameplay factor of the game is the "Don't Move" component, in which you must hold your controller completely still. Your ability to remain still will affect the story and could make a huge difference.

I am wondering how I could make something like this in a textual format. Making choices "Move" and "Don't move" seem too simple and obvious, so is there a more complex way to implement this into Twine 2.0.11, Harlowe 1.2.2?

Version 1.2.3 fixes Harlowe FFFE problem - will it be applied to Version 2?

$
0
0
My html server returns an error for an illegal xml character <FFFE>. Searching the web, I find the following entry:

https://bitbucket.org/_L_/harlowe
...
1.2.3 changes (unreleased):
Bugfixes
...
Fixed a bug where the Javascript in the resulting HTML files contained the Unicode non-character U+FFFE, causing encoding problems when the file is hosted on some older servers.
...

Looks like that is the fix I need. My Twine version is 2.0.11. Will that fix be incorporated any time soon?

Is there a way I can add variables to the sidebar?

$
0
0
I'm using Sugarcube 2 and I was wondering if there was an easy way to just add a few variables to the sidebar that way they are always tracked.

Just simple things like the time, location, currency, etc...

Problems trying to have variables + changed path depending on history of reader (Harlowe+Twine 2)

$
0
0
Hi! I'm quite new to Twine, and have expectedly come across a few problems. I've searched the forums and wiki but can't find a solution to my problem. I'm trying to get variables and.. I think the reader's history to determine what links are available to them.

So far, my story has 5 parts. I want people to go from Part 1, to either Parts 2 & 3 (they go together) OR Part 4. Either choice should then take them to the other one which they haven't seen yet, but no matter their choice they should end up at Part 5. (For example, they can go from Pt 1 and choose Pt 2->Pt3->Pt4->Pt5, or choose to go from Pt 1 -> Pt 4 -> Pt 2 -> Pt3 -> Pt5.

If people choose to see Pt 4 before Pts 2&3, I don't want the link leading to Part 4 to show up at the end of Part 3.

I'm using Harlowe (I'm not sure which version, but it's Twine 2.0). I've tried a few different things, I'll list them below. I'm sorry if they're way off, I just started this morning.
(if: ((history:) contains "The Beginning, pt. 5")[[
What of the village?->The Girl, pt. 1]])(else:[[
It is still snowing->The Beginning, pt. 3]])

^^^ This lights up as if it's a proper command, but doesn't create any real links.
<<if visited "The Beginning, pt. 5"=true>>
[[What of the village?->The Girl, pt. 1]]
<<end if>>

^^^^ that's what I was doing first, because I found some examples on this forum of that. It seemed to show the links alright, but it showed them regardless of whether you had already visited them (which isn't what I wanted).

Any help is appreciated :)

Twine Google Analytics?

$
0
0
Hey all, new to Twine. Doing a project where I need to track people's choices to the narrative I'm making. Planning to use Google Analytics but haven't been able to figure out to how to best integrate it with Twine.

I have my GA tracking code in the story JavaScript (as recommended here) and then in a passage I have:
<script>ga('send', 'event', 'passage', 'loaded', 'ENDING');</script>

no errors, but nothing is showing up in my Analytics dashboard, but I know there is often a delay, so hopefully it'll show up in a few hours? Or am I doing something wrong?

I would like to track each Passage the user visits for simplicity on the analytics end. I think I could send the entire history of the player with an array or something at the end but then it'd be a little difficult to read the data on the GA dashboard. Seems easier to just send each passage but open to either option.

Should I use postrender? I'm just reading about this and it seems like I could set it to automatically send the analytics event at every passage render that way? And I should be able to grab the title with "this.title"? Is this the recommended solution? Are there any drawbacks?

Any advice appreciated. If the code I have does work (will know once GA dashboard updates) then I could just put it in every passage, but would love a more streamlined approach.

Backslashes \\\ replacing spacin when I import

$
0
0
Hey everyone. So I archived my twine and when I import it, I find that all of the places where I had a space between lines of text have been replaced with \\\\\\\ numerous backslashes. They weren't in the HTML file, but they show up when I import.

Anyone know why this might be? If not, is there a way to bulk delete these? If I have to go in and delete them all manually one by one, that's fine for now since I'm not too far along on my game. I'm more concerned about this happening when I've finished the game and have 100+ passages that this could happen to.

Thanks!

SVG not working in SugarCube?

$
0
0
Hey there,
I'm trying to draw a basic SVG <rect> in SugarCube 2.12.0 with Twine 2.0.11 but it doesn't seem to want to work. I've created a blank story and pasted the following into the starting passage:

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><rect x="10" y="10" height="100" width="100" style="stroke:#ff0000; fill: #0000ff"/></svg>

When I play the story, I see nothing. However, if I change the story format to Harlowe or Snowman, it appears without any issue. Is there something obvious that I'm missing for SugarCube?

Sugarcube 2: Avatar in Sidebar

$
0
0
I want to assign every player a random avatar at the beginning of the game. This assigned avatar should then be seen in the sidebar.

So I would write for example on the start page:
<<set $avatar to either ("[img[ava1]]", "[img[ava2]]")>>
<<remember $avatar>>

Your avatar is $avatar

and in the special passage StorySubtitle just:
$avatar

1. Is this the perfect solution in the first place?
2. What if I would like to assign the avatar on the start page, but first show it in the sidebar on the second page?


thank you in advance!!





Twine 2 + Sugarcube 2 = how?

$
0
0
Short question: how do I use the save API?
Do I have to add macros to operate the API from the JS?
I've read the documentation but I can't find any info about using the APIs.
Sidenote to the author: would be nice to have an example or explanation how to use all these features.

CSS Dotted Underline

$
0
0
I'm looking on how to add a dotted underline on a span. I've tried text-decoration (and text-decoration-style), but it looks like it's not supported yet or something?

[harlowe] getting a random passage based on tags

$
0
0
is it possible for me to have a setup where you can click a button, and get a random passage, preferably based on the tags so i can filter which button returns which kind of passage?
Viewing all 3830 articles
Browse latest View live