Harlowe - Getting a link/click to affect more than 1 result throughout the text?

0 votes
asked Sep 12 by valdavaux (250 points)
Let's say I have a link for a "cookie" that when you click it, it says "you pick up a cookie!", I want it to also say at the bottom or at the top of the screen (or somewhere unrelated) "+1 food item!".
I tried it with the click command, but it only seems to affect a single occurence at a time.


1 Answer

0 votes
answered Sep 12 by greyelf (27,520 points)
selected Sep 13 by valdavaux
Best answer


  • You need to indicate the name and full version number of the story format you are using, as answers can be different for each one. I will assume you are using the default version of Harlowe which is currently v1.2.4.
  • I would suggest using the question tags to indicate which Twine application and story format you are using instead of adding that information to the question's title.
    eg. twine2 twine2-1-3 harlowe harlowe1-2-4 

You can use the (replace:) macro combined with a named hook to output text at a predetermined location, and you can do that with the associated hook of a (link:) macro like so:

(link: "cookie")[you pick up a cookie!(replace: ?events)[+1 food item!]]


... and placing the above named hook within either a header tagged Passage or a footer tagged Passage will cause that output to appear at the start or end of the content of the current Passage being shown.

commented Sep 13 by valdavaux (250 points)
Sorry for not following the rules, will make sure of it next time.

Your answer is great! Thanks a bunch :)
Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.