CameFrom

True if the given node appears in the current selection’s jump chain. The chain of nodes traversed by the most recent sequence of player choices that led to the currently playing node.

Category: Play history Returns: bool

Signature

CameFrom(nodeOrTag)

The argument is either a node ID (node_intro) or a tag ID (tag_kind). When given a tag, returns true if any node carrying that tag appears in the current jump chain.

Examples

CameFrom(node_intro)          // true if the player jumped into this node
                              // from a path that includes node_intro
CameFrom(tag_hint)            // true if any tag_hint node is in the jump chain
!CameFrom(node_warning)       // skip a warning if the player didn't come
                              // through the warning node

Notes

CameFrom looks at the most recent jump chain, not just the immediately prior single node. When the player picks a choice that triggers a jump-chain like A → B → C, then inside C’s events both CameFrom(node_A) and CameFrom(node_B) are true. The chain resets on each new choice presentation.

For arguments: use the ID, not the UUID; see Expressions.

Docs last synced: 2026-07-08
Screenshot viewer