Howdy, Stranger!

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

Stupid Question: Silently Macro in Harlowe?

edited May 2015 in Help! with 2.0
Starting my first Twine 2 game. I'm using the default story format, Harlowe. In my first passage, I would like to set some variables.

For the life of me, my stupid brain can't figure out the equivalent of Sugarcane's <<silently>> macro. I tried using slashes as well.

I tried looking through here, but didn't see anything.

Thanks for the help!

Comments

  • Is just setting variables not working for you…?
    (set: $someVariable to "someContent")
    
  • It includes white space. That's one of the main purposes of the <<silently>> macro—it removes white space.

    For example, this:
    (set: $foo to 1)(set: $bar to 1)(set: $bas to 1)(display: "main")
    

    Is different than this:
    (set: $foo to 1)
    (set: $bar to 1)
    (set: $bas to 1)
    (display: "main")
    
  • edited May 2015
    Found it. Braces "{}" remove white space.

    Though, I'm still not sure how to get rid of the one line of white space after the closing brace . . . Close enough for now.
    {
    (set: $foo to 1)
    (set: $bar to 1)
    (set: $bas to 1)
    }(display: "main")
    
    Puts in indentation before the contents of the "main" passage.

    {
    (set: $foo to 1)
    (set: $bar to 1)
    (set: $bas to 1)
    }
    (display: "main")
    
    Leaves a line of white space before the contents of the "main" passage.
  • In Harlowe, white space is ignored if between curly braces:
    {
    (set: $someVariable to "someContent")
    }
    
  • (Ha! Totally asynchronous here for some reason.) ;)
  • Weird.

    Still can't get rid of that dang line of white space after the brace! I tried a "nobr" tag on the passage from Twine 1 days, but to no avail.

    I guess I'm the only white space OCD Nazi out there. XD
  • No. I am too (check out Three Dragons). But I use a lot of CSS to fix it.

Sign In or Register to comment.