Howdy, Stranger!

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

[Harlowe] A variable set to true with a click

I'm sure something about this is stated some where, but i can't find it.

Let's say my variables, $x, $y, and $z are set to false. On the same page, I have 3 options, each will go to the same page, but each will set either $x, $y, or $z to true. The thing is, I don't know how I should write that.

Comments

  • What you need is the (link:) macro.
    (link: "first link")[(set: $x to true)(goto: "new passage")]
    

    Doing the same for the other two links.

    blatant self promotion warning: You can read more about the link macro here, http://twine.analytical-engine.co.uk/index.html?p=links2
  • edited October 2015
    edit: information in this post about usage of the (link-goto:) macro was incorrect.
  • Prof's version worked, but for some reason the link-goto version will make all of the variables true, which is disappointing since it's easier to type/remember.
  • Opps, it seems that the (link-goto:) macro does not support an associated hook!
    Sorry for misleading you
Sign In or Register to comment.