Selected
Counts how many of the targeted nodes the player has directly selected during the current visit to the scene the argument belongs to. For a node argument the result is always 0 or 1. For a tag argument it is the number of distinct tagged nodes the player has selected this visit, capped at the count of tagged nodes in the project. Unlike Played, which counts jump-target executions too, Selected only counts choices the player actually clicked.
Category: Play history
Returns: int (boolean-coerces, see Boolean coercion)
Signature
Selected(nodeOrTag)
The argument is either a node ID (node_confront) or a tag ID (tag_kind). For a node, the result is 1 if the player selected it this visit and 0 otherwise. For a tag, the result is the count of distinct tagged nodes the player selected this visit. A node selected more than once (because it is set to repeat) still contributes one to that count.
Examples
Selected(node_confront) // 1 if the player picked the confront choice
// this visit, else 0
Selected(tag_kind) // count of distinct tag_kind choices picked this visit
Selected(tag_aggressive) >= 2 // at least two distinct aggressive picks this visit
!Selected(tag_aggressive) // unlock a follow-up only if no aggressive
// choice was picked (0 coerces to false)
Notes
Selected is scoped to the current scene visit. Re-entering the
scene clears the selection set. For session-global “have they ever
chosen this?” use SelectedEver. See
Expressions
for the rule.