Skip to content

Do something for every clan member

Every member of a clan gets the same treatment, one after the other: a memory, a payment, a line of text.

  1. Add a For Each Actor node.
  2. Under From, set Among to Members of a clan. Clan starts as the Conspirator’s clan. Include Dead is off, so only the living are taken. Never the Conspirator and Never the Target are on at first. Turn them off if they belong to the clan and should get a turn.
  3. In Where, add conditions about the Candidate to narrow the group.
  4. Set Order: As listed, Oldest first, Youngest first or Random. At most limits how many get a turn, and 0 is no limit.
  5. Link the nodes to run to Each, and what follows the loop to Done. In their actor fields, choose Current Actor. To reach the actor from a loop inside this one, name it first in Each One Is with a scheme actor variable.

To leave early, put a Break Loop in the loop. No further turn starts, Done runs, and the flow that reached the break goes on through Out.

The demo scheme Natural Death is the cross-check. Its node mournBeside loops over the Conspirator’s children, Where the Candidate is alive, At most 4, Each One Is Mourner, and Each leads to an Add Memory for Mourner. Another loop there, secretChild, goes through the children oldest first and uses a Break Loop once a secret has been told.

The turns run one after another, and a turn starts when every flow of the one before has ended.

Done runs after the last turn.

  • Nothing happens. The group is empty, or nothing is linked to Each. The card warns about the second.
  • An actor who dies during the loop still gets a turn. The list is fixed when the node starts. Destroyed actors are skipped.
  • A flow after Run In Background does not hold the turn. The next turn starts without waiting for it, and each flow keeps its own actor under the Each One Is name.
  • Current Actor outside a loop has nobody. The node that uses it stops its flow.