Categories

I figured out cycling links in Harlowe 2.1.0

I spent all evening working on cycling links, but couldn't find any guides written specifically for the newest version of Harlowe, so here's my solution for links that you click again and again to cycle through options:

(set:$place to (a:
"the cave",
"the bridge",
"the cliff",
"the lake"))
p>You walk until you reach (link-repeat:"|this>[it]")[(set:?this to $place's 1st)(set:$place to(rotated:1, ...$place))].
</p>

This will start with a link that says it, then cycle through the four locations.
I hope this helps somebody! If you have any questions please ask.