"Passage Visits": Snowman (v2.0)


Starting with Snowman 2.0, the global function visited() returns the number of times one or more passages have been visited during the course of the story. Combined with the use of Underscore template interpolation, the result of a function can be written to a passage.

Live Example

Download: Live Example

Twee Code

:: StoryTitle
Snowman: Passage Visits

:: Start
How many times has the passage "Another Passage" been visited? <%= visited("Another Passage") %>

[[Another Passage]]

:: Another Passage

Download: Twee Code

results matching ""

    No results matching ""