Howdy, Stranger!

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

List of array elements as links?

Hello all,

I'm trying to make a rudimentary inventory system with the Harlowe macros. I've got an array of strings and a passage that lists those strings. What I'm trying to do is make each item name link to a passage that has some flavor text and things to do with the item. I found a tutorial that uses the (click:...)[(display:...)] macros, but I would rather not have the flavor text open IN the inventory screen because that could get messy with many items.

Alternatively, if there is a way to make it so other (click:)s will undo the hook of a previous (click:), that could also work.

Thank you in advance!

Comments

  • Based on your original post you know how to create the list of links and you just want the link to navigate the reader to a another passage containing the information about the selected link. If this is the case you need to replace the (display:) macro in your example with a (go-to:) macro.
    (click: ...)[(go-to: "the target passage name")]
    
  • Wow! That's exactly the macro I was looking for. I must have passed over it in the documentation. Thanks so much!
Sign In or Register to comment.