Skip to content

Find Actor

Group
Actors
In the node menu
Actors › Find Actor
Where it can be used
Scheme graphs
Presets
  • Pick an Accomplice

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.

A Find Actor of the demo scheme Scheme 1: Court Favour (Drafts/schemes/01-court-favour.json). The courtier with the most Cunning is stored as Rival.

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.

  • 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.
LabelDraft keyTypeDefaultShown if, tooltip and notes
FromFromamongnot in the data
  • As in For Each Actor.
WhereWhererows of ConditionDatanot in the data
  • As in For Each Actor.
If TiedIfTied
  • Listed (The one listed first)
  • Random (At random)
  • Oldest (The oldest)
  • Youngest (The youngest)
  • HighestRank (The highest court role)
  • LowestRank (The lowest court role)
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.
  • As in For Each Actor.
PickPick
  • Random
  • Oldest
  • Youngest
  • HighestValue (Highest value of)
  • LowestValue (Lowest value of)
  • HighestRank (Highest court role)
  • LowestRank (Lowest court role)
  • FirstListed (First as listed)
  • LastListed (Last as listed)
"Random"Which of the matching actors is taken. A tie is decided by If Tied.
VariableRankByname of ActorNumberVariablenone: must be set when shown

Shown if Pick is HighestValue or LowestValue

A number variable every actor has. Actors without it rank last.
  • an Integer or Float variable that belongs to actors
Store InStoreInStore In (Actor)not in the dataAn 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.
  • none: "Nowhere"
  1. Found
  2. Not Found
"type"
"Find Actor"
Presets (also a "type")
  • "Pick an Accomplice": sets From.Pool=List
"set" keys
From, Where, IfTied, Pick, RankBy, StoreIn
"then" keys
"Found", "Not Found"
"<alias>": {
"type": "Find Actor",
"then": { "Found": "<alias>", "Not Found": "<alias>" }
}