Skip to content

Check State

Group
Conditions
In the node menu
Conditions › Actor › Check State
Where it can be used
Scheme graphs
Tags
  • Also a condition row: Alive or Dead

Check State asks whether an actor is alive or dead. It continues through True when the actor is in the state you chose, and through False when not. The card reads like a sentence, such as “Target is alive”.

A node of the demo scheme Garden Courtship (Drafts/schemes/05-garden-courtship.json). Its own condition is the Conspirator; one more condition adds the Target, so both must be alive.

Use it before a scheme goes on with an actor who may have died since it began, such as the Target. Add a second condition to the same node when two actors must both be alive, as the example does.

Use Is AI instead to ask who plays an actor. Use Set State instead to change whether an actor is alive.

  • When the actor cannot be found, the node has no answer. If the other conditions do not settle the result, the flow stops there.
  • The node can hold more conditions, joined by AND or OR, each with an optional NOT. The NOT switch of the node’s own condition shows only while the node has more conditions.
  • The node also works as a row, called Alive or Dead, in the condition lists of Check and Wait Until.
  • When the node reads the Target in a scheme that does not need a target, the card warns: in a run without a target the node has no answer, and the flow stops there unless the other conditions settle the result.
LabelDraft keyTypeDefaultShown if, tooltip and notes
ActorActorActorRef"Conspirator"The actor whose state is checked.
IsState
  • Alive
  • Dead
"Alive"Alive or dead.
draft onlyNegateboolfalse
  • Every condition node has this setting.
  • The Studio shows the NOT mark on a condition's heading line instead, once the node has more than one condition.
draft onlyExtraConditionsrows of ConditionDatanot in the data
  • Every condition node has this setting.
  • The Studio shows "+ Add another check" under the node's own rows instead; each further condition gets a heading line (IF / AND / OR, NOT).

Draft only: a draft sets it; the Studio has no row of its own for it.

  1. True
  2. False
"type"
"Check State"
"set" keys
Actor, State, Negate, ExtraConditions
"then" keys
"True", "False"
As a condition row
"kind": "Alive or Dead"
"<alias>": {
"type": "Check State",
"then": { "True": "<alias>", "False": "<alias>" }
}