At the beginning of my game, I want to present the player with a selection of different "perks" (effectively, setting a variable to "yes" to allow players to bypass certain skill checks later in the game). One way to do this would be to create different unique pages for each link, where the variable is set at the top of the page or whatever. But for organizational purposes / general tidiness, I'd rather have all links link to the same single page, while the link itself takes care of setting the variable. I found a guide on the Twine Wiki, but I don't think the information applies to the most recent version of Twine / Harlowe.
For something like an example of how it apparently used to work:
* I want
Perk Selected][$perk1 = yes
* I want
Perk Selected][$perk2 = yes
Comments
It states that the Harlowe equivalent of a setter link is something like the following:
So your examples would be as follows:
Don't forget to assign default values to your variables somewhere before the above code or your unselected perk variable will equal zero instead of "no":
Thank you kindly!