Repeater
Repeater
Loop
Done
- Group
- Flow
- In the node menu
- Flow › Loops › Repeater
- Where it can be used
- Scheme graphs
What it does
Section titled “What it does”A Repeater runs the same part of a scheme several times. It starts the nodes linked to Loop. When all of their flows have ended, it starts them again. That is one round. After the last round, Done runs.
The flow that reached the Repeater does not wait for the rounds. Once the first round has started, it goes on to the nodes linked below the Repeater.
Example
Section titled “Example”Repeater
8 times
Loop
Done
When to use it
Section titled “When to use it”Use it when the same steps should happen a set number of times, such as one round per season. Turn on Forever when the rounds should go on until something stops them.
Use For Each Actor instead when each round is about one actor of a group. Use a Sequencer when the steps differ and should run one after another.
Good to know
Section titled “Good to know”- A Break Loop inside the round ends the loop. No further round starts, and Done runs.
- With Times at 0, the card warns that the loop never runs. Done still runs.
- A round on Forever needs a Wait or a dialogue that waits for a player. Without one, it runs every frame, and a
draft check reports it (
A-BUSY-LOOP). - When Done is linked and the round leads back to this Repeater, the card warns: every pass keeps a little memory until the scheme ends.
- A paused scheme holds the next round until it is resumed.
- When Cancel Other Flows ends the Repeater, Done does not run.
- Flows after a Run In Background do not hold the round.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Forever | Forever | bool | false | Repeat until a Break Loop node runs or the scheme ends. |
| Times | Count | integer | 3 | Shown if Forever is false How many times the Loop output runs.
|
Outputs
Section titled “Outputs”- Loop
- Done
In a draft
Section titled “In a draft”"type""Repeater""set"keysForever,Count"then"keys"Loop","Done"
"<alias>": { "type": "Repeater", "then": { "Loop": "<alias>", "Done": "<alias>" }}