How do I attach variables to hyperlinks?

If you are requesting technical assistance with Twine, please specify:
Twine Version: 2.0
Story Format: Harlowe 3.2.2

Please place any example Twine code you provide between three back-ticks 
on a separate line before and after the code like this
so it is monospaced and copyable for testing!

Hello, I need help making a hyperlink to a new page change a variable when clicked. Thats really it, thanks!

1 Like

In the 3.x series of Harlowe you would to use the (link-reveal-goto:) macro. An example of how is included in this macro’s documentation.

Alternatively you could use the older (link:) plus (go-to:) macro combination.

(link: "Enter the hole")[
   (set: $variable to "value")
   (go-to: "Falling")