Visits
Total number of times a scene has been pushed or a location has been arrived at this run.
Category: Visit tracking
Returns: int
Signature
Visits(sceneOrLocationId)
The argument is either a scene ID (scene_tavern) or a location ID
(location_market). The counter is session-global. It does not reset on
scene exit, and increments on push/arrival before the intro fires
(so Visits(scene_X) inside scene_X’s intro reads 1 on the first
visit, 2 on the second, etc.).
Examples
Visits(scene_tavern) > 0 // have they been here before?
Visits(location_market) >= 3 // third arrival or later
Visits(scene_office) == 1 // first visit: show the intro speech
Notes
Visits(X) > 0 is not a substitute for Played(X). Visits counts
scene pushes (which happen before any nodes play), so a visit can be
recorded even if no nodes inside the scene were played. Pair Visits with
Played when you need both.
For elapsed time since the last push/arrival, see TimeSinceLastVisit.