Visible
True if the named node was visible at the end of the previous evaluation pass. Visible() reads a cached answer; it never re-evaluates the target node’s own condition.
Category: Visibility
Returns: bool
Signature
Visible(nodeId)
The argument is a node ID (node_choice_a). The runtime returns the visibility state recorded for that node during the previous evaluation pass. On the first pass, or when the target has never been evaluated, the result is false.
Examples
Visible(node_hint) // was the hint node visible last pass?
Visible(node_secret) && Has(var_inventory, item_key)
// show only when the secret is visible AND the player carries the key
Visible(node_choice_b) || Visible(node_choice_c)
// at least one of two choices was on offer
Notes
Visible when only. Visible() is valid only inside a Visible when expression. Calling it from an event condition, a Set variable value, or any other slot throws an error at evaluation time.
Reads the previous pass, not the current one. Even inside Visible when, Visible() returns the cached result from the previous evaluation pass. The current pass has not finished computing visibility yet; reading the last pass’s answer is what stops a circular dependency from forming when nodes reference each other’s visibility. Practical consequence: if a change this pass would flip the target node’s visibility, your expression will not see that flip until a later pass. When the answer needs to be current, read the same underlying variables the target’s Visible when reads instead.
For arguments: use the ID, not the UUID; see Expressions.