"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.

Live Example

Download: Live Example

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

Download: Twee Code

results matching ""

    No results matching ""