Repeater Node: Difference between revisions

From Intrigues Wiki
No edit summary
No edit summary
Line 1: Line 1:
= ๐Ÿ” Repeater Node =
[[File:Repeater Node.png|thumb|Repeater Node]]
[[File:Repeater Node.png|thumb|Repeater Node]]
<b>Description</b><div class="description" style="padding-left:35px;">Repeats the flow connected to this node for the number of times entered.</div><blockquote>ยป [-1] Creates infinite repetitions.</blockquote>
The '''Repeater''' node repeats the execution of the nodes connected to its output.
----
ย 
== ๐Ÿง  What it does ==
When triggered, it runs all nodes connected to its output '''in sequence''', and '''repeats the process'''.
ย 
If a repeat count is set (e.g., <code>3</code>), it will run the connected flow '''3 times total'''.
ย 
If set to <code>-1</code>, it will '''repeat indefinitely'''.
----
ย 
== ๐Ÿ”‚ Behavior Detail ==
ย 
* The repeater '''waits''' until the current sequence of connected nodes completes.
* Only after all connected nodes finish execution does it trigger again.
* This prevents infinite overlapping or premature re-execution.
ย 
----
ย 
== ๐Ÿ“Œ Use Case ==
Used for polling input, repeating animation triggers, AI decision refreshes, or looping systems.
----
ย 
== โš ๏ธ Notes ==
ย 
* Can be safely paused with <code>Pause</code> and continued with <code>Resume</code>.
* Compatible with key handlers or other condition-checking nodes.
ย 
----
ย 
== ๐Ÿ“ท Example ==
----
ย 
== ๐Ÿ”— Related Nodes ==
ย 
* <code>Pause</code>
* <code>Resume</code>
* <code>Key Handler</code>
ย 
----Use when you want to '''loop a behavior''' without risking call stack overflows or unexpected recursions.

Revision as of 12:18, 29 May 2025

๐Ÿ” Repeater Node

Repeater Node

The Repeater node repeats the execution of the nodes connected to its output.


๐Ÿง  What it does

When triggered, it runs all nodes connected to its output in sequence, and repeats the process.

If a repeat count is set (e.g., 3), it will run the connected flow 3 times total.

If set to -1, it will repeat indefinitely.


๐Ÿ”‚ Behavior Detail

  • The repeater waits until the current sequence of connected nodes completes.
  • Only after all connected nodes finish execution does it trigger again.
  • This prevents infinite overlapping or premature re-execution.

๐Ÿ“Œ Use Case

Used for polling input, repeating animation triggers, AI decision refreshes, or looping systems.


โš ๏ธ Notes

  • Can be safely paused with Pause and continued with Resume.
  • Compatible with key handlers or other condition-checking nodes.

๐Ÿ“ท Example


๐Ÿ”— Related Nodes

  • Pause
  • Resume
  • Key Handler

Use when you want to loop a behavior without risking call stack overflows or unexpected recursions.