Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

New to twine - have a simple question that I can't seem to find the answer to.

Okay so it's been a long time since I've written any type of code and I'm having a small issue with passages.

So currently I have this:

<<set $friendName = "">>
The girl across the street is your best friend, maybe you could waste the morning with her what was her name again?
<<textbox "$friendName" $friendName>>

So all of that works fine but I want to set her name to print inside of a passage but when I do

Oak Street

That doesn't work, so I got rid of the ''s'. No dice. Tried just using $friendName as if it were in a body of text. Nope. Is it possible to to place anything besides | inside?


  • Have you tried that without the <<print>> macro?
  • edited March 2017
    You should always state the story format you're using and its version, because advice will tend to vary based on that information.

    Since you're asking about Twine 2 and <<textbox>>, I'm going to assume you're using some version of SugarCube—though it would be nice to know which.

    For historical reasons, you need to use TwineScript there. Try the following:
     [["Leave " + $friendName + "'s house"|Oak Street]]
Sign In or Register to comment.