Do something for every clan member
The goal
Section titled “The goal”Every member of a clan gets the same treatment, one after the other: a memory, a payment, a line of text.
Do it, step by step
Section titled “Do it, step by step”- Add a For Each Actor node.
- 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.
- In Where, add conditions about the Candidate to narrow the group.
- Set Order: As listed, Oldest first, Youngest first or Random. At most limits how many get a turn, and 0 is no limit.
- 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.
What you will see
Section titled “What you will see”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.
What can go wrong
Section titled “What can go wrong”- 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.
How it connects
Section titled “How it connects”- Who Current Actor is, and what happens when nobody is there, is on Who a node acts on. Flows are on How a scheme runs.
- The nodes are For Each Actor, For Each Clan and Break Loop.
- To pick one person instead of all, see Find someone and remember them.