Skip to content

For Each Clan

Group
Flow
In the node menu
Flow › Loops › For Each Clan
Where it can be used
Scheme graphs

A For Each Clan runs the nodes linked to Each once for every clan of a group, one after the other. Then Done runs.

For each turn, the clan is written to the Clan variable you choose at Each One Is. The nodes of the loop read the clan from that variable.

A For Each Clan of the demo scheme Scheme 32: Claim the Hollow Throne (Drafts/schemes/32-claim-the-hollow-throne.json), going over every clan.

Use it when something should happen once for each clan of a set: all clans, or the clans under, above or tied to another clan.

Use For Each Actor instead when the loop is about people.

  • Without a variable at Each One Is, the card warns that you cannot read the clan of each turn.
  • A For Each Clan inside another needs a variable of its own.
  • Disbanded clans are left out, unless you include them. A clan disbanded by an earlier turn is skipped too.
  • The list is fixed when the node starts. After the loop, the variable holds the clan of the latest turn.
  • The clan the group is built around must be available. If it is not, the flow stops there.
  • Break Loop ends it like it ends a For Each Actor.
LabelDraft keyTypeDefaultShown if, tooltip and notes
AmongAmong
  • EveryClan (Every clan)
  • ClansUnder (The clans under a clan)
  • ClansUnderAnyDepth (The clans under a clan, at any depth)
  • ChainAbove (The clans above a clan)
  • WithTie (Clans tied to a clan)
  • WithAttitude (Clans a clan holds an attitude toward)
"EveryClan"Every clan, the clans under a clan (directly or at any depth), the chain above a clan, the clans tied to a clan, or the clans a clan holds an attitude toward.
OfOfClanRef"of:Conspirator"

Shown if Among ≠ EveryClan

The clan the group is around. When it is not available the flow stops here.
TieTieIDname of TieKindnone

Shown if Among = WithTie

The kind of clan tie. Empty: any kind.
  • none: "Any kind"
AttitudeAttitudeIDname of Attitudenone

Shown if Among = WithAttitude

The attitude the clan holds toward them. Empty: any attitude.
  • none: "Any attitude"
Include DisbandedIncludeDisbandedboolfalseDisbanded clans get a turn too. Off: they are left out.
At MostLimitinteger0The most clans that get a turn. 0: all of them.
  • min 0
Each One IsStoreInStore In (Clan)not in the dataA Clan variable of this scheme that holds the clan of each turn, for the nodes of the loop (and the latest turn's clan after it).
  • none: "Nowhere"
  1. Each
  2. Done
"type"
"For Each Clan"
"set" keys
Among, Of, TieID, AttitudeID, IncludeDisbanded, Limit, StoreIn
"then" keys
"Each", "Done"
"<alias>": {
"type": "For Each Clan",
"then": { "Each": "<alias>", "Done": "<alias>" }
}