Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all 1844 articles
Browse latest View live

Harlowe What to type after an "If" variable, (:if $hassword is "false") = I want the player to lose

$
0
0
Hello everyone. I'm new to twine and am having trouble with Variables, specifically what to write after the above variable to create a link to another passage.

Also if there was a tutorial you could recommend it would be really helpful, thanks.

External URL links disappear when clicked

$
0
0
I am trying to add a link to an external URL to one of my passages. Here's an example:

Layout of the overview could be a vertical "stacking" display like
(link:"this.")[(open-URL:"http://www.cogentrogue.com/ITS/index.html#/id/58a8ef490d854e5c054825d6&quot
;)]//
When the user clicks the word "this" the link opens in a new tab as intended. But the word "this" also disappears until the page is refreshed. Any idea why this is happening?

Help creating a UI

$
0
0
Hi I'm new to twine and CSS and after looking around the net I can't seem to find the info I am looking for. I want to create a custom UI for my game and I'm not sure how to do it. This is only a learning game to help me get the hang of twine for later games and the UI i'm looking for is probably to advanced for me right now but I still want to know how to do it. The sugarcube 2 UI isn't that nice so I IMO mocked up a pic of a nicer one. If anyone can help me I would much appreciate it.

Following link sets variable

$
0
0
I'm sure there's an easy way to do this but I just can't find it. I'm in Twine 2, so using Harlowe by default but willing to switch.

I want the player to be taken to the same passage next, but depending on which option to proceed they chose, a variable is set to different things. Say, picking an object to bring before they head down a path. They'll be going down the same path no matter what, but later it will matter which object they brought with them.

Sorry if this is a stupid question...

Twine not exporting to file or saving online

$
0
0
Hi all,
I have enjoyed using Twine for a long time and have spent a long time on a particular story. (this is on the online version on Google Chrome.)

I have previously had some trouble with Twine not saving my stories online, so I tried to export the file so I could import it back in later just in case. However, it did not actually export the file when I pressed the button.

Also, I cannot play or test the story, or even view the proofing copy. When it opens a new tab to do so, the "welcome to Twine" page appears and there are 0 files in the menu, despite me having a story open in another tab.

Please help! Thanks!

Online version 2.1.3 - I cannot "Publish to file" from a specific story

$
0
0
I am able to publish to file on other stories I have created still but a particular story does nothing when I click "Publish to file". It does nothing from choosing that option in the story itself, nor from the setting option on the main page where it says "5 stories": http://twinery.org/2/#!/stories

At the moment my story is a work in progress with some disconnected elements. Would this stop me from being able to publish it as a story? If so, does anyone know of a way for me to be able to share the story in its current state with a collaborator?

Thanks in advance!
Alex

published file doesnt work

$
0
0
I published my story (twine 2.1) to file so that I'd be able to switch from using the browser version to the downloaded version of twine. Except when I try to add that file to desktop twine it doesn't show up/load/work at all. I tried to go back to twinery.org and it says I have no stories and won't accept the published html file either. Did I save it wrong somehow? Is there anything I can do to recover or fix the file? Thanks!

Snowman: display a specific passage in all passages?

$
0
0
I want to implement something like Harlowe's footer/header feature... specifically for a menu for inventory, character notes etc. And be able to hide it on some passages (probably based on passage tags)

I'm pretty comfortable with javascript but not JQuery.

Can I respond to all "about to show a passage" events & modify the passage before it is shown? I guess I would do this in the story javascript? How would I go about it?

No 'Back' or 'forward' buttons when using IE

$
0
0
Hello,
I am using Harlowe 1.2.4 and have noticed if I use IE, I no longer see a back or forward arrow on each passage. When I open the same html file within Chrome I see the back and forward arrows.

Does anyone know why they would not be visible in IE? and is there anyway to make them show up?

page as link

$
0
0
Just started with Twine 2. Is it possible to make a page itself a link such that clicking the mouse anywhere on the page sends you off to some other passage?

SugarCube 2 How to use arrays?

$
0
0
I have this:
StoryInit
<<set $LOW_SKILL = 1>>
<<set $MID_SKILL = 2>>
<<set $HIGH_SKILL = 3>>
<<set $SALARY[$LOW_SKILL] = 100>>
<<set $SALARY[$MID_SKILL] = 200>>
<<set $SALARY[$HIGH_SKILL] = 300>>
Somewhere in passages:
<<set $skill = $LOW_SKILL>> (or $MID_SKILL or $HIGH_SKILL)
<<set $money += $SALARY[$skill]>>
I have error: <<set>> bad evaluation. Cannot set property "1" of undefined.
In documentation note like $obj[$index] is something about members. But I need only numeric arrays for my constants.
What need I do?

Removing blank left margin after removing Sugarcube UI

$
0
0
Arg. I realize that this has already been discussed, but I'm not getting the results I want.

Using Sugarcube 2 and Twine 2, I've removed the Sugarcube UI on the left side with:
$('#ui-bar').remove();
$(document.head).find('#style-ui-bar').remove();
But my text is still indented one third of the screen towards the right. The blank space where the UI used to be remains.

How do I get rid of it?

Note that
body {
margin-left: 3.5em; /* or 0em */
}
Has no effect. What am I doing wrong, thanks?

Click links not showing?

$
0
0
Why don't my click links show up? Harlowe 2.0.1,
(set: _setterTest to "unset")|text>[This is an example text to see if this works.]

(click: "Click this toto change the variable")[(replace: ?text)[(set: _setterTest to "set")This text should change variable to (print: _setterTest).]]

(click: "This should only change the text")[(replace: ?text)[This is just a different piece of text]]

Is it possible to make a visual novel in twine 2?

$
0
0
I need as wondering since I'm planning on making one at some point.

trouble publishing from web version, using chrome on Android

$
0
0
Hi, Ive been searching for a few days for an answer including this forum so I hope this isnt a duplicate!
I'm using twine 2 web, using chrome on an android table.
"publish to file" results in the "downloading..." popup appearing briefly but no download actually taking place
this is the same from either inside the story, or from the story browser
same if I try to use "archive"

reading this forum I have tried a few things, changing the story format back and forth and moving the start point, still same results.
I have tried downloading the page using chrome's feature for this but im left with a 377kb "txt" file (would this be roughly the correct size? my story is text only, about 2,700 words, 56 passages, 70 links) which im not sure what i can do with, opening just results in a page with the url at the top, even when i change the file type to html.

I hope someone can hep me with this, I'd like to be able to recover this story even if there isnt a way to continue working with twine on a tablet (though I'd like to keep using tablet too as its really practical for my work flow)

thanks and all the best!

uma

Undo in Twine Editor

$
0
0
Can I ask why there is still no undo function in the Twine 2 editor? I have seen threads going back to 2015 on the subject and to be honest I am tired of losing hours of work from simple miss keys, as a work around I am using Notepad so that I have basic undo functions (as well as search/replace) but again having to copy paste between the two so I dont risk losing work is getting tiresome when its over the lack of a function found in the most basic applications.

clickable "Hint"-button in almost every passage (SugarCube 2)

$
0
0
Hey everybody,

I am in need for orientation for the following problem:

I want to have a "hint" button in almost every passage which opens a <div> with a hint on how to solve the passage's task. The text for the hint is different for each passage and will be stored in a string within each passage.

I figured the PassageHeader-passage in combination with some <<button>> and <<replace>> macros within a custom widget would do the job. But isn't there a more elegant, maybe pure CSS/jQuery solution?

Thanks!

Hidden link in one passage?

$
0
0
Hi all! I can't exactly figure out how to make a link look like normal text, but only in a single passage.

Any help will be appriciated.

[Twine 2.0, Harlowe] Random numbers with exclusions?

$
0
0
Is it possible to create random numbers with specific exclusions? I'm trying to make a very simple dungeon crawler, and I need a script for the enemies to target random party members. But I need to set it up so they don't have the option to target party members who are already at 0 HP. Is there a simple solution that I am missing? Sorry if I'm not phrasing things correctly or not giving enough information, this is my first time trying to learn any programming language.

How to make Image with a clickable link have a mouse over effect??

$
0
0
Hey guys, new to Twine - very new to coding too - and I'm struggling a bit with something. On Sugarcube 2.18 btw.

How can I have an image (which, when clicked, sends you to a different passage) have a mouseover effect (swapping between two images as the mouse hovers on and then off again)

At the moment all I have is this:

[img[ed/main.png][BEGIN0]]

and have an alternate imagine (main2.png) in the same folder that I want it to switch to when I mouseover. I've looked up a couple of similar requests but they're not on sugarcube 2.x so it doesn't seem to help.
Viewing all 1844 articles
Browse latest View live