Is it possible to track the path of users through a branching scenario?

0 votes
asked Jan 12 by jaxruen (120 points)
I'm an educator looking to use branching scenarios to study learner decision making.  In order to do so, I need to see what path users are taking and in which order of priority..  I have been unable to determine if this is possible.

2 Answers

0 votes
answered Jan 12 by Chapel (38,150 points)
edited Jan 12 by Chapel
We need to know the story format. It's possible in all story formats, as, by default, the player's history of visited passages is tracked by the app.

Getting that information without having users self-report may be complicated, though. Since you'll need some way to collect that info and Twine apps are generally purely client-side.
0 votes
answered Jan 12 by greyelf (58,490 points)

Please use the Question Tags to state the name and full version number of the story format you are using, as answers can vary based on this information. I will assume you are using the default story format which is Harlowe v2.1.0

You use the (history:) macro to access the collection, and the (for:) macro to loop through the names contained within the returned Array. The last element in the Array returned by the (history:) macro is the name of the previous Passage, not the name of the current Passage.

(set: $names to (history:))

(for: each _name, ...$names)[


Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.