A few years ago, I worked on a Twine game offline. I used SugarCube rather than Harlowe because I wanted clicking a link to also be able to set a variable in the same action, and Harlow appears unable to do that.
For example, this used to work:
[[Listen to the voice.|FirstEncounter3][$Listen to true]]
[[Ignore the voice.|FirstEncounter3][$Listen to false; $Annoyance += 1]]
I recently re-imported my old executable into the browser version of Twine. It no longer recognizes my code, so I started playing around with Harlowe; fran into the same problem as before with variable setting.
But any time I use SugarCube code, even copy-pasted from their documentation’s examples, Twine just keeps telling me Harlowe is different. For example, even pasting
<<set $apples = 6>>
gives me an error.
To be honest, I would be happy to just stick to Harlowe if I could find a way to set variables with a link, like I used to be able to. Can anyone advise?