Howdy, Stranger!

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

Harlowe - displaying a link to a passage if the player visited another passage

edited November 2016 in Help! with 2.0
I'm trying to create a story where the outcomes change depending on which order the player explores a house. For example, if a player visits room X first, they will be unable to visit room Y, but they can still visit room Z.

Here's the code I'm trying to use:
(if: (history:) contains "Bathroom") [
[[Kitchen.]]
]
[[Bedroom.]]
[[Living room.]]


I get this error message:
"The (if:) command should be assigned to a variable or attached to a hook."

What am I doing wrong?

Comments

  • I think it might be as simple as removing the space between the open parenthetical and the first square bracket?
  • I tried that, still nothing.
  • Here's an example story that seems to work correctly... you should be able to import it into Twine and see the code.
  • Thank you so much!! Between this code and some finagling, I figured it out - the passage was named "sec1_op0" and Twine wasn't liking the 0.
Sign In or Register to comment.