Check Actors
- Group
- Conditions
- In the node menu
- Conditions › Actor › Check Actors
- Where it can be used
- Scheme graphs
- Tags
- Presets
What it does
Section titled “What it does”Check Actors takes a group of actors and asks one question about it. Does any actor meet your conditions? Does every one? Does none? Or how many do, compared with a number? It continues through True or False.
The conditions in the Where list are asked once per actor of the group. The actor under test is the Candidate.
Example
Section titled “Example”When to use it
Section titled “When to use it”Use it to ask about a whole group without a loop: any accomplice who is dead, at least two accomplices, nobody in a list. The menu has two presets, “Any Accomplice…” and “Count Actors”. The node also works as a row, called Actors, in the condition lists of Check and Wait Until.
Use Find Actor instead when you need the actor itself, not only the answer. Use For Each Actor instead when each actor should get its own turn.
Good to know
Section titled “Good to know”- With no Where rows, every actor of the group counts as meeting the conditions.
- A candidate for whom the Where rows have no answer does not count as meeting them.
- Every is also true when the group is empty. The card says so in a line.
- Candidate is meant for Where lists. Used elsewhere, it shows an error on the card.
- When the group cannot be read, for example its list is missing, the node has no answer and the flow stops there, unless the other conditions of the node settle the result.
- The node can hold more conditions, joined by AND or OR, each with an optional NOT.
- A count compared with a number that is always true or never true makes the card warn.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| From | From | among | {"IncludeDead":true} | |
| Where | Where | rows of ConditionData | not in the data | |
| Which | Quantity |
| "Any" | Any: at least one meets the conditions. Every: all of them do (also true when the group is empty). None: not one does. How many: the number that do, compared with a number. |
| Number Is | Op |
| ">=" | Shown if Quantity = Count How the number of actors that meet the conditions is compared with the number below. |
| Number | Number | integer | 1 | Shown if Quantity = Count The number to compare with.
|
| draft only | Negate | bool | false |
|
| draft only | ExtraConditions | rows of ConditionData | not in the data |
|
Draft only: a draft sets it; the Studio has no row of its own for it.
Outputs
Section titled “Outputs”- True
- False
In a draft
Section titled “In a draft”"type""Check Actors"- Presets (also a
"type") "Any Accomplice…": setsFrom.Pool=List"Count Actors": setsQuantity=Count
"set"keysFrom,Where,Quantity,Op,Number,Negate,ExtraConditions"then"keys"True","False"- As a condition row
"kind": "Actors"
"<alias>": { "type": "Check Actors", "then": { "True": "<alias>", "False": "<alias>" }}