Skip to content

Find someone and remember them

A scheme picks one person, for example the strongest rival at court, and later nodes and texts refer to that person by name.

  1. Add an actor variable to the scheme. In the scheme’s settings, under Cast, click + New actor variable and name it, for example Rival.
  2. Add a Find Actor node. Under From, set Among to the group: Everyone, Members of a clan, Members of a family, Relatives of an actor, Actors of a list, Everyone taking part in this scheme or another group.
  3. In Where, add conditions about the Candidate, the actor being checked. The demo scheme Natural Death keeps only living actors.
  4. Set Pick: Random at first, or Oldest, Youngest, Highest value of, Lowest value of, Highest court role, Lowest court role, First as listed or Last as listed. If Tied breaks a tie.
  5. In Store In, pick your variable, then link both outputs, Found and Not Found.

The demo’s node findKin does this with everyone taking part in the scheme, never the Conspirator, Pick set to First as listed, and Attendant as the variable.

In any actor field of a later node, choose Scheme Actor and pick Rival under THIS SCHEME. In a text, write a token: Natural Death writes {scheme.Lover.Name} for an actor stored under Lover.

Use Store Actor. Name the actor, for example Target’s spouse, and the variable to put them in.

Found runs when someone matches, and the variable holds that actor.

Not Found runs when nobody does.

The variable holds one actor for the whole scheme run, and the last store wins, whichever branch made it and however many nodes read the name afterwards.

  • Not Found empties the variable. It never keeps an actor found earlier. Handle Not Found before you use the name.
  • Two flows overwrite each other. Storing into the same variable replaces the value, also from another branch, so use two variables when you need two people.
  • A random pick changes. Random picks again each time the node runs.
  • The variable is missing, or is not an Actor variable. Nothing is stored.