For Each Clan
For Each Clan
Each
Done
- Group
- Flow
- In the node menu
- Flow › Loops › For Each Clan
- Where it can be used
- Scheme graphs
What it does
Section titled “What it does”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.
Example
Section titled “Example”For Each Clan
Each clan as KingClan
Each
Done
When to use it
Section titled “When to use it”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.
Good to know
Section titled “Good to know”- 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.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Among | Among |
| "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. |
| Of | Of | ClanRef | "of:Conspirator" | Shown if Among ≠ EveryClan The clan the group is around. When it is not available the flow stops here. |
| Tie | TieID | name of TieKind | none | Shown if Among = WithTie The kind of clan tie. Empty: any kind.
|
| Attitude | AttitudeID | name of Attitude | none | Shown if Among = WithAttitude The attitude the clan holds toward them. Empty: any attitude.
|
| Include Disbanded | IncludeDisbanded | bool | false | Disbanded clans get a turn too. Off: they are left out. |
| At Most | Limit | integer | 0 | The most clans that get a turn. 0: all of them.
|
| Each One Is | StoreIn | Store In (Clan) | not in the data | A 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).
|
Outputs
Section titled “Outputs”- Each
- Done
In a draft
Section titled “In a draft”"type""For Each Clan""set"keysAmong,Of,TieID,AttitudeID,IncludeDisbanded,Limit,StoreIn"then"keys"Each","Done"
"<alias>": { "type": "For Each Clan", "then": { "Each": "<alias>", "Done": "<alias>" }}