Find Actor
Find Actor
Found
Not Found
- Group
- Actors
- In the node menu
- Actors › Find Actor
- Where it can be used
- Scheme graphs
- Presets
What it does
Section titled “What it does”A Find Actor picks one actor out of a group. The group can be everyone, a clan, a family, someone’s relatives or a list. Where conditions narrow it down, and Pick says which of the matches is taken.
When someone matches, Found runs. When nobody does, Not Found runs. Store In keeps the pick under a name, so later nodes can reach that actor.
Example
Section titled “Example”Find Actor
Highest Cunning of Courtiers → Rival
Found
Not Found
When to use it
Section titled “When to use it”Use it when the scheme needs one actor out of a group: the oldest child, the strongest rival, a random accomplice. Check the two outputs when the group may hold nobody.
Use Gather Actors instead when you want several actors in a list. Use For Each Actor when every actor of the group should get a turn.
Good to know
Section titled “Good to know”- A random pick is new each time the node runs.
- A pick by a value ranks actors without that value last. The card shows an error when no value is chosen, when it is not a number, or when it does not belong to actors.
- Not Found empties the Store In variable. It never keeps an actor found earlier.
- The variable holds one actor for the whole scheme run. Storing again replaces it, also from another branch.
- With First as listed or Last as listed, the conditions are checked only until the first match from that end.
- If the group is not available, the flow stops at this node.
- A preset, Pick an Accomplice, sets the group to the accomplices.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| From | From | among | not in the data |
|
| Where | Where | rows of ConditionData | not in the data |
|
| If Tied | IfTied |
| not in the data | Shown if there can be a tie What decides between actors the pick cannot tell apart, for example two actors of the same age.
|
| Pick | Pick |
| "Random" | Which of the matching actors is taken. A tie is decided by If Tied. |
| Variable | RankBy | name of ActorNumberVariable | none: must be set when shown | Shown if Pick is HighestValue or LowestValue A number variable every actor has. Actors without it rank last.
|
| Store In | StoreIn | Store In (Actor) | not in the data | An Actor variable of this scheme that gets the actor, so later nodes can pick it by name. It holds one actor for the whole scheme: storing into it again replaces it, even from another branch. Not Found empties it.
|
Outputs
Section titled “Outputs”- Found
- Not Found
In a draft
Section titled “In a draft”"type""Find Actor"- Presets (also a
"type") "Pick an Accomplice": setsFrom.Pool=List
"set"keysFrom,Where,IfTied,Pick,RankBy,StoreIn"then"keys"Found","Not Found"
"<alias>": { "type": "Find Actor", "then": { "Found": "<alias>", "Not Found": "<alias>" }}