Execution, data, and bot context
Understand graph wires before combining triggers, values, and actions.
Execution wires
An execution wire selects the next node to run. A trigger starts the graph, and action or flow nodes continue that path through their execution outputs. A data wire alone does not mean that an action runs.
For a branch, connect the action to the appropriate True or False execution output. For a loop, distinguish the body output from the output after the loop finishes. The node reference lists the exact port IDs.
Data wires
A data wire supplies an input value from another node's output. Values have types such as string, number, boolean, bot, vector, list, or map.
A required input needs a compatible value. An optional input can use its declared default. The editor's inline value supplies an unconnected input, such as a chat message or interval. Do not connect an execution port to a data port.
Bot context
Bot event triggers carry the bot that caused the event. Downstream bot actions use that execution context unless a connected bot input overrides it. This makes the first script work with only an execution wire.
A trigger without a bot context needs an explicit bot source for bot actions. For example, On Interval has no bot. Connect it to Get Bots and For Each Bot, as in the timer example.
Branches and loops
Start with one branch and a known constant condition. Check both paths before connecting game state to the condition. For a loop, use a small bounded input first. Check the expected number of actions and the completion path.
A loop that sends chat, requests HTTP data, or calls an AI model can multiply work quickly. Use a delay, rate limit, and the script's quotas where the workload needs them.
Repeated actions
Data nodes compute values. Action nodes change the world or SoulFire server state. Keep actions on a clear execution path. A timer, reconnect, or repeated chat message runs the same actions again. Add a condition, cooldown, or rate limit when an action must not repeat.
Related guides
Use state and persistence for values shared across events. Use debugging to inspect an unexpected execution path.
Last updated on
Was this page helpful?
