Skip to content

Repeater

Group
Flow
In the node menu
Flow › Loops › Repeater
Where it can be used
Scheme graphs

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.

The Repeater of the demo scheme Season of War (Drafts/schemes/16-season-of-war.json). Each round adds 1 to the scheme variable Season; Done goes on to a Compare Numbers node.

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.

  • 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.
LabelDraft keyTypeDefaultShown if, tooltip and notes
ForeverForeverboolfalseRepeat until a Break Loop node runs or the scheme ends.
TimesCountinteger3

Shown if Forever is false

How many times the Loop output runs.
  • min 0
  1. Loop
  2. Done
"type"
"Repeater"
"set" keys
Forever, Count
"then" keys
"Loop", "Done"
"<alias>": {
"type": "Repeater",
"then": { "Loop": "<alias>", "Done": "<alias>" }
}