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

Displaying [ ] symbols in a link to another passage

$
0
0
Hi there,

I'm trying to make a link to a new passage, but I want the visible text to include [ ] symbols, to represent an action rather than dialogue.

I tried this:
[[[Run to the Fermented Potato]]]

The link it creates displays correctly as "[Run to the Fermented Potato]" but the link doesn't work (displays an error in the next passage. Also, the next passage is automatically named "[Run to the Fermented Potato" (yeah just the first "[" ). I found this a bit odd.

I'm new to Twine, any help is much appreciated!

add a new format failed

$
0
0
Hi, was trying to add a new format to twine2 by following this tutorial https://github.com/cauli/TwineJson .

But after typing into the url, it keeps loading and never finishes. It happens on both the web and local version twin2.

Also tried other format links, same behavior. Seems like a twine problem.

Anyone got the same issue?

How do I edit the Sidebar in Sugarcube?

$
0
0
I'm making a sports game so I want the sidebar to display the roster

How do I edit the sidebar to display that?

Need help to choose story format

$
0
0
Hello,
I am a bit new to Twine and I am not sure which format to choose for my story. My main need is to be able to change the image for each passage, and a little formatting (font). What would you suggest?
And could you assist me to change the image in each passage?
Thanks a lot for your feedback!
Best,
Carole

Issue with Items

$
0
0
Hello! I'm creating a game using Harlowe 1.2.3 in Twine 2, and I'm experiencing a bit of difficulty with items.

I'd like for the player to track down some currency before leaving their home, and I'm using an if macro to track whether the player has enough money on them before proceeding. I thought I was using the relevant macro to increase this variable, but it doesn't seem to be working, and I'm not sure if I'm using the accurate code (which is likely as I'm a complete novice). I've also been using the back button to return to different areas, and I've read that serves as a reset, so that might also be a contributing factor.

Thank you for taking the time to read this.

Trying to get background image on a passage

$
0
0
Twine 2.1.0, Harlowe 2.0

I want to use an image for the background for a single passage. I'm trying this:

(background: "example.jpg")?Page

But I get this error:

The (background:) command should be assigned to a variable or attached to a hook.►
?Page

Figured "?Page" was OK for the "background:" macro. The Harlowe documentation suggests this is possible.
"?Page selects the page element (to be precise, the <tw-story> element) and using it with the (background:) macro lets you change the background of the entire page."

Unless perhaps this doesn't work for images.

I tried (enchant:) using an image name,

(enchant: ?page, (background: "example.jpg"))

but it just fails silently; no error message. Now, I understand that a missing image fails (silently) but an "<img" tag works just fine with the same image.

Any help appreciated.

Nothing happens when locally publishing to file

$
0
0
I use Twine 2.1.0 on Windows 8.1

When I click the "Publish to File" option in Twine, nothing happens. No file is created (from what I can find), no dialogue box opens, nothing. Am I doing something wrong?

(Harlowe) What's the css tag for (mouseover:) links?

$
0
0
Hey, I'm trying to use mouseover links in harlowe and I noticed that they're just sort of... underlined with a dotted line, and I'd like to make them more noticeable by changing their appearance in the CSS style sheet.

The problem is no matter how hard I look I can't for the life of me find the css tag for links created with (mouseover:) I know about tw-link and .enchantment:link, but I haven't seen anyone clarify the equivalent tag for (mouseover:) links.

Illume Proofing

$
0
0
Has anyone used the Illume proofing format this year? I'm having trouble importing it. The error I receive when I put up the format is

The story format at http://www.maximumverbosity.net/twine/Illume/format.js could not be added ().

Is this a new error for Harlowe 2.0.11 or i am doing something wrong? Thanks for your help.
Best,
FIF

Check value in two dimensional array in Harlowe.

$
0
0
Hello, I'm new here.
How can I check value in two dimensional array like: (this obviously don't work for me)

(if: $levelMap[$posX][$posY+1] is > 0)[[Go South]]

The $levelMap is 10 : 10 array:
(set: $levelMap to (a:
[0,0,0,0,0,0,0,0,0,0],
[0,1,1,1,1,1,1,1,1,0],
[0,1,0,0,0,0,0,0,1,0],
[0,1,0,1,1,1,1,0,1,0],
[0,1,0,1,1,1,1,1,1,0],
[0,1,0,0,0,0,0,0,1,0],
[0,1,1,1,1,1,1,1,1,0],
[0,1,0,0,0,0,0,1,1,0],
[0,1,1,1,1,1,1,1,1,0],
[0,0,0,0,0,0,0,0,0,0]))

"Publish To File" Won't Work on Firefox! URGENT!

$
0
0
Whenever I click publish to file nothing happens. There is no indication to show that it has saved, no new tabs open, nothing. It's like clicking on nothing. I have been trying to save it for three days and I really need to find out how to work it, as my school project is now becoming progressively late. Please help!!!!

Publish to File does nothing

$
0
0
Using the online Twine editor at https://twinery.org/2/#!/stories, I click the gear icon below (and to the right) of a very simple story (one passage, entitled Start, with one sentence in it), choose Publish to File, and … nothing happens.

I use Chrome with "Allow local data to be set" ON and "Block third-party cookies and site data" OFF.

You help would be appreciated.

Background Image Clickable?

$
0
0
Twine 2.0 Harlowe Version 2.1.1

Is it possible to have a background image clickable? I have the code set up in my Story Stylesheet and the background image works fine. I'm also inserting
<script>$('body').removeClass().addClass('castle')</script>
into passages I want the background image to be in.

Example: Background image is a tree. Click anywhere on the background image to be sent to the next passage.

Creating a Binary Decision from Several Options (then eliminating those options)

$
0
0
Finally been thrown for a loop on a problem. First post, but lurking for a few months.

The idea is this: I'd like for a player to visit a location and randomly see 2 people out of a possible 5. They can then choose which person to talk to, which takes them to separate passage for that conversation.

Next, I'd like to make the chosen person no longer show as an option at this location once their option has been chosen. I still want to have a choice and show 2 people out of the remaining options.


I've attempted creating a datamap that includes the possible passages, but Harlowe doesn't like that code. I've tried creating an array and using Either to assign a random number to a variable and then coding it to pump out a different location based on this, then... Well, it would get labor intensive. But, there's gotta be something aside from pages of repeated entries to solve this problem.

Thanks!
(Using Harlowe 1.2.3, Twine vers. 2.0.11)

Object reference and changing multiple values

$
0
0
I work on Twine 2, with story format Harlowe 1.2.3.
I wanted to prepare a few objects, e.g:
(set: $object1 to (datamap: "name", "Object 1", "value", 1))
(set: $object2 to (datamap: "name", "Object 2", "value", 2))

and then I want to create an object which is the reference to one of this previous objects
e.g.:
(set: $currentObject to $object1)
Now everything's ok, when I call : (print: $currentObject's name) the result is "Object 1", when I change: (set: $currentObject to $object2) and call again (print: $currentObject's name) the result is proper: "Object 2".
When I change one of the values of datamap (set: $currentObject' value to 5) and when I change the current object and back to previous one - everything seems to work fine. The problem is when I want to change more than one value of current object.
E.g.:
This works:
(set: $currentObject to $object1) ... (set: $currentObject's value to 5) ... now I can change current object, then back to object1 and the value is changed,

This don't work and I don't know why:
(set: $currentObject to $object1) ... (set: $currentObject's value to 5, $currentObject's name to "New Object's name")
and change object to $object2 and then I back to the object1 - it shows the old, unchanged values.
I don't know why, when a I change 1 value - everything's ok, when I want to change more - it don't work at all.

using symbols with If statements using variable In Harlowe 2.1.1

$
0
0
Ive been having some trouble. I don't know if twine just doesnt support what im trying to do or if there is another way to go about it. basically when a variable reaches a certain point i want something to happen. however since it deals with negatives and positives and the exact number they could have can change I can simply say
(if: $var is -1)[ blah blah blah]
Here's what ive been doing and there is not error message it just doesn't do what is after the if statement even when it is a negative.
first passage is this.
(link: "test")[(set: $affection to -1)(goto: "test2")]
this is on the second passage test2
(if: $affection is < 0)[ You are dead.]
(print: $affection)
When it prints the variable it is indeed -1 however it does not show the you are dead text. any help would be appreciated.

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.

Permanently Changing a Variable as the Result of a Choice

$
0
0
I have decision points that not only advance the story, but also change a variable. The code I've used so far helps me exit the if statement, but it doesn't permanently change the variable. I need to be able to track it over the course of the story.

Code:
(set:$1st to 1)
(if:$1st is 1)[
|choice>[
(link: "A) \“Hello .... District\”")[
(set:$1st to 2)
(replace: ?choice)[“Hello ... District.”]]
(link:"B) \“Good .... cause.\”")[
(set:$1st to 2)
(replace: ?choice)[“Good .... cause.”]]
]](else:)[ERROR]

Help with character Sheet

$
0
0
Hey everyone,

First, i am using Twine version 2.0.11 and SugarCube version 2.11.0 (at least thats what appears when i check inside Twine)

On my game, i am trying to create a character sheet for the player.

This needs to be populated by stuff like

Agility: Average

Strength: Good

Stamina : Below Average

Karma: Good

The first thing that came into my mind was to present a different image photoshopped for each situation based on the variables. One for Average, Average, Average, Average... another for Good, Average, Average, Average... you know what i mean.

This creates a lot of images that need to be stored in the game.

Is there a way for twine to put two images together, one in front, another in the background, in order to have always 1 background, and in front you would have the specific Good, Average, Below Average images?

The other way would be to separate the main image in several blocks, one with the stats, the other with the main image, and then have twine "glue" them together, if possible.

I know this is not an easy request for help, my thanks in advance.

Cheers,

Magma

Ubuntu MATE - Problem Launching Twine 2.1.1

$
0
0
When I unzipped the folder and clicked on the Twine file, I got the following error:

Could not display "/home/michael/Desktop/nw/Twine/twine_2.1.1/nacl_helper".

There is no application installed for shared library files.
Do you want to search for an application to open this file?

On a whim, since I knew this was supposed to be a browser based program, I changed the name from Twine to Twine.html. This then launched the program.

Anyone else experience this?
Viewing all 1844 articles
Browse latest View live