Howdy, Stranger!

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

ANSWERED Trouble with History (Harlowe)

edited September 2015 in Help! with 2.0
I'm designing a mobius story: reaching the end leads you right back to the starting block. The intro is a little long, so I want to give players the option to skip it IF they have already seen it.

So I added this to the bottom of the first introductory passage:
(if: (history:) contains "intro2")[Skip intro.]

And it works ... sort of. When I tested it with a temporary link from intro2 to the start page, the Skip intro link does appear only after intro2 has been visited... but it's not clickable! When hovering, the cursor is a red circle with a line through it. The Skip intro passage works, and the editor shows that it connects properly to the introduction page.

Any ideas for how to fix it?

Comments

  • Never mind, I figured it out. I'll leave this and the solution here in case someone else gets confused about this later.

    <b>(if: (history:) contains "intro2")[Skip intro.->NEWPASSAGE]</b>

    Not sure why that mattered, since NEWPASSAGE works in other contexts, but whatever.
  • edited September 2015
    Sometimes there are issues when parsing markup links that contain non-alphanumeric characters like full stops, square brackets, etc.

    You can generally get around this problem by using Harlowe's (link-goto: "Link Text", "Target Passage Name") macro.
    (if: (history:) contains "intro2")[(link-goto: "Skip intro.", "Skip intro.")]
    
    (if: (history:) contains "intro2")[(link-goto: "Skip intro.", "NEWPASSAGE")]
    

    note: Twine 2 will not automatically create a new target passage for any link type besides the markup one, so you will need to create the target passage yourself.
  • Good to know!

    I had trouble with the link-goto format as well in the same passage. Who knows.
Sign In or Register to comment.