r/twinegames

I just published my first demo.
▲ 3 r/twinegames+1 crossposts

I just published my first demo.

Hello guys, I have done a little experiment with my Webnovel using twine.

I have adapted the first four chapters of my Webnovel using twine to make it into interactive fiction.

Instead of simply being the same as canon it offers an alternative route.

The demo offers two main routes.

One follows the canon lore for the players who want to immerse and stick close to the original storyline.

And the second one offers alternative choices, and decisions.

https://asstoryteller.itch.io/records-of-immortality-chapter-14-interactive-demo

u/AnuragSaharan29 — 1 day ago

Changing url linked images to locally linked images?

I can't imagine this hasn't already been posted, but I wasn't able to find anything. So I just realized that hosting my images/audio/etc on my truenas Scale server (Filebrowser Quantum) wasn't going to work due to permission/browser issues, but (until now) thought that was the going standard (web hosting images/audio/etc.). I just learned about the better method of using a zip folder, and need to connect my images/audio/etc locally. I say better mainly because it keeps all the files/story together, whereas there is no real issue of worrying about files getting moved (disconnected) or the server being down for one reason or another. I was able to find one bit of information buried in an old post, but I'm not sure if it's still valid. It looks right to me, but I just want to be sure. I assume this creates a tag connecting to the image, and simply adding the right tag in the passages?

u/PowerMental6161 — 2 days ago
▲ 20 r/twinegames+4 crossposts

First effort- The Dead City (feedback appreciated)

Hey y’all- like the post says, this is my first effort to make something like this, and I would very much appreciate feedback on it. I made it with Twine and categorized it as a visual novel, but I’m not totally sure that’s the best way to describe it.

It’s a new adaptation of a dark Symbolist novel called Bruges-la-morte and is sort of a collage of the novel text, some original text material, photographs and video fragments of my own, and some public domain audio and video.

You can try it here, and comment and/or support it if you wish:

https://jesserichardsart.itch.io/the-dead-city-twine

Thanks!!!

u/Funeral_Wells — 3 days ago

Paste CSV into a passage?

Hello folks!

I was wondering if you could have a passage that reads input that is pasted CSV (comma separated value) data to parse and use. My objective here is to produce a content-agnostic quiz engine where I could have questions + answers in an excel, save to CSV and copy & paste the raw CSV into the Twine editor. Then other passages could grab and use the questions and answers.

reddit.com
u/bad_apiarist — 3 days ago

I have a background image set in my Harlowe stylesheet, but need to override it in a few passages?

I have an global image set in my stylesheet, but need to override the stylesheet code so that a few of my final passages "credits" have different images. I've tried a few different codes, but didn't work. It's probably just me though. I know the "!important" inserts are a problem, but I'm afraid of screwing up anything that might not work if I do.

html, body {

margin: 0 !important;

padding: 0 !important;

width: 200% !important;

height: 100% !important;

background-color: #000 !important; /* Elegant black backdrop if window stretches past image */

}

tw-story {

background-image: url("my image is here");

background-position:center;

background-size:contain;

background-repeat:no-repeat;

background-attachment: fixed;

}

tw-passage {

position:fixed;

display:inline-block;

width:calc(min(70vw, 100vh) - 20vw);

height: min(50vw, 50vh);

top:50%;

left:50%;

translate: -50% -50%;

overflow:auto;

color: #080707 !important;

font-family: "Georgia", serif !important;

}

tw-sidebar {display:none;}

body, .story-passage, div {

-webkit-user-select: none;

-moz-user-select: none;

-ms-user-select: none;

user-select: none;

}

reddit.com
u/PowerMental6161 — 5 days ago

ChapelR's Inventory with images? Please help

I've hit a roadblock, and one that could probably be resolved quite easily but I'm frankly not good at html yet and feel quite stupid.

I want an RPG-style inventory/stores that normally show images alongside names of the items. I use ChapelR's simple inventory as well as the store system for it and it works quite well. The thing that I cannot for my life figure out is how to add the sprites next to the item names in the inventory and stores.

ChapelR's system has a feature to create items and consumables. What I want is basically shown in this example:

<<consumable "Apple_ItemID" "IMAGE OF AN APPLE + Apple">>

<</consumable>>

I've been trying to figure it out for hours, tried to look all over the Internet and through the source code. I've tried simply entering <img src..., [img[... etc. into the field but it just shows it as text or doesn't show anything at all. The solution my shrivelled brain has come up with is adding tags to the items and then creating a new row in the inventory grid to show an item sprite based on the tag, but I'd really just rather have an image directly attached to each item if that's possible.

Attached is an example of what I want it to look like.

https://preview.redd.it/5x2j8ap937jh1.png?width=356&format=png&auto=webp&s=fa1a11a12dbdc83d9b6a5a1921fc2d96698f98dd

If anyone has any suggestions or possible solutions I'd really greatly appreciate it.

reddit.com
u/scripach — 7 days ago

Newbie! How do I/ can I make the color or emphasis of a link dependent on a variable attached to said link?

Incredibly new, I do not know how to code or do anything at all and I downloaded twine yesterday. I’m currently trying to make a link, like a

<<link “touch me”>><<set $touched to true”>><</link>>

type link emboldened or turn another color or smth when you click on it as to indicate that it’s actually changed the variable. I can confirm that it changes the variable myself by making a little <<if>> thing but I want to see a visual indicator that it did when inside the passage inside the actual game. I’ve googled this about forty times and lots of stuff comes up, but most of it doesn’t make sense to me.

Not sure if I can do this, as I’m not sure of much. So i’d be okay with making a plain piece of text in the same passage embolden or change color depending on the variable, but I can’t seem to figure out how to do that either. Sorry if this doesn’t make sense, I don’t know what I’m doing or talking about. Thanks for any help.

reddit.com
u/Sin_viav — 8 days ago

Sugarcube "Resume Game" Button

Hello,

I am running into a consistent issue when trying to get a "Resume Game" button up and running on the main menu I've made for this game I am working on. I believe part of it is that I have been reverse engineering things through inspecting older twine templates to see what I can manage while also looking up CSS along the way.

I am trying to make a simple, but custom UI since I felt the default didn't fit the vibe I was going for on this project. While I've gotten both of the other buttons on this main menu functional, this resume game button is just not working.

Here is the code for the button within the main menu:

&lt;span id="main-resume-game"&gt;&lt;&lt;link "Resume Game"&gt;&gt;&lt;&lt;run Save.browser.continue()&gt;&gt;&lt;&lt;/link&gt;&gt;&lt;/span&gt;

Here is the javascript I have currently for this:

Save.browser.auto.isEnabled() == true;

Knowing my luck it's probably something fairly simple that I'm just missing, but I would deeply appreciate some help with this.

Thank you for your time!

reddit.com
u/kissxsleep — 10 days ago

creating check box

Hi right now I am trying to create an archetype list that uses a check box to select which archetype the player wants. That part was easy. I am having a hard time setting things up so the player can pick between 1-5 of the 20 archetypes. Ialso would like the archetypes to be displayed in the character creation menu left to right. the last thing I am having problems with is making things so the player can have archetypes added or taken away based on the players choices.

reddit.com
u/holzey — 8 days ago

How would I remove the UI Bar, but only in certain passages?

So sorry for the terrible wording of this, but I am fairly new to Twine and code stuff in general. I'm just testing things out for now before I attempt to make an actual game and I've been trying to follow a guide that I found online.

I think some parts of it might be missing and I'm not the best at Javascript so I did some research on google and figured out how to use the StoryMenu passage for links on the UI Bar and I have even discovered the magical line of <<return "Back">> which I thought was really cool until I got locked into a cycle between 'Stats' and 'Just Yeah' and couldn't return to the 'main passage'.

https://preview.redd.it/8p5vje4p9yih1.png?width=926&format=png&auto=webp&s=0c7a18db09ea58fe44a208954c1e26bf01902498

I wasn't totally sure how to fix this so I'm trying to make it so that when you enter the 'Stats' or 'Just yeah' passage, the Ui Bar is taken off the screen or as I have recently learned the correct term for it is 'stow the UI Bar'. In the 'stats' passage I have been using the code:

&lt;&lt;script&gt;&gt;
UIBar.stow();
&lt;&lt;/script&gt;&gt;

But I'm realising that if I do, it will stay that way for the whole thing and I have to put code to unstow it in every other passage.

I was wondering if there might be a way to make the UI Bar unstowed by default, as in it only stows when in either the 'stats' or 'just yeah' passage without me having to put a line of code in every single passage as it is quite inefficient. Once again I'm very sorry if the wording is bad as I'm not totally sure on all the terminology yet. Any advice is much appreciated!

reddit.com
u/MistressofLightBulbs — 8 days ago

Double &lt;&lt;timed&gt;&gt;?

So, I'm currently writing my story and I'm trying to get double linkappend and timed, but for some reason the second timed isn't working?

The entire thing works, except the second timed, and it's giving an error:
Error: child tag <</timed>> was found outside of a call to its parent macro <<timed>>

I would appreciate the help!

My story looks kind of like this:

Santa, I want a new doll for &lt;&lt;linkappend "Christmas!"&gt;&gt;
&lt;&lt;timed 2s&gt;&gt;

''ho ho ho! is that what you want?''

You nod your head &lt;&lt;linkappend "enthusiastically."&gt;&gt;
&lt;&lt;timed 2s&gt;&gt;

''Yes I do [[Santa!-&gt;Story2]]
&lt;&lt;/linkappend&gt;&gt;
&lt;&lt;/timed&gt;&gt;
&lt;&lt;/timed&gt;&gt;
&lt;&lt;/linkappend&gt;&gt;
reddit.com
u/Spiraling-Down- — 10 days ago

paper doll macro error help

Error: macro &lt;&lt;paperdoll&gt;&gt; does not exist
this is the code im starting with
&lt;div id="paperdoll-container"&gt;
&lt;&lt;paperdoll&gt;&gt;
&lt;img class="layer-body" src="images\Paper doll images\doll body/female body/skin_$skinTone.png"&gt;
&lt;img class="layer-tits" src="images\Paper doll images\doll body\boobs/skin_$skinTone.png"&gt;
&lt;img class="layer-arms" src="images\Paper doll images\doll body/ARMS/skin_$skinTone.png"&gt;
&lt;img class="layer-hands" src="images\Paper doll images\doll body/HANDS/skin_$skinTone.png"&gt;
&lt;img class="layer-nipples" src="images\doll body/NIPPLES/skin_$skinTone.png"&gt;
&lt;img class="layer-bald" src="images\Paper doll images\ hair/ BALD_HEAD/ skin_$skinTone.png"&gt;
&lt;img class="layer-eyes"src="images\Paper doll images\eyes/EYES_GRAY/$eyeColor.png"&gt;
&lt;img class="layer-hair"src="images\Paper doll images\hair/style_$hairStyle/$hairColor.png"&gt;
&lt;/div&gt;
reddit.com
u/holzey — 10 days ago

Help!

I am trying to make a system where I want to ask:

(If: $variable = "Example Text") [

(set: $number to 999)

]

But twine says I need a Boolean not an equal sign. What do I do?

reddit.com
u/Kitchen-Guitar-9753 — 10 days ago

How to change link color after it has been already visited?

Hi, I'm an entirely new dev using twine and would like to learn how to change link color when already clicked.

I using SugarCube 2 and have been able to change link colour and passage colour in general but for some reason can't change link colour when already clicked on it.

My twine story has many options and I want my players to know what link they've already clicked on.

P.S. Can you guys share any good free music or sound effect website?

reddit.com
u/Total-Performance779 — 12 days ago

Implement icon from online library

I tried to implement Flaticon uicons in twine sugarcube with script src but it is not working. Tried @import url in CSS and importStyles in JS also but maybe I used the wrong link(?)

I was able to implement fontawesome with script scr (need to use kit source) and <i class=etc></i> in html.

If anyone has a step by step guide, it would be greatly appreciated.

u/eringwann — 9 days ago

Sugarcube Save UI

Is there anyway to make the save ui look like the one on the right?

I am playing around with Sugarcube and it keeps giving me the picture on the left, either on browser or on downloaded twine.

I know the one on the right is from Sugarcube save ui also, and I would assume it’s automatic as I was looking thru a template online and there is no extra coding in JavaScript.

Am I missing something or is it not sugarcube after all?

u/eringwann — 12 days ago

Inline if-then-else in Chapbook?

Hey I can't find any documentation on this, any way to have a conditional text display inside a paragraph? The best I could figure out is:

I look around before stepping off. The old
[if metOldCaptain]
[append]
captain
[else]
[append]
man
[cont]
[append]
is still standing at the stern, looking out towards to open sea.

Which is quite the mouthful, is this how I'm supposed to do it?

reddit.com
u/osense — 12 days ago