Skip to content

"Passage Visits": Harlowe (v1.0)#


In Harlowe, the macro (count:) returns the number of times a value appears in an array. The macro (history:) returns an array of any passages visited as part of the story.

Combined together, the macro (count:) with the (history:) can return the number of times a certain passage has been visited during the course of the story.



Twee Code#

:: StoryTitle
Harlowe: Passage Visits

:: Start
How many times has the passage "Another Passage" been visited? (count: (history: ), "Another Passage")

[[Another Passage]]

:: Another Passage

Twee Download