Nodes

what they are, how they work, and what to prepare with

How to choose a tree node

First decide what you need: check a condition, do a step, choose a branch or change a child's result. Below are the main EyeAuras nodes with links to their pages.

Execution results

ResultMeaning
SuccessThe node finished successfully. The parent decides where to go next.
FailureThe node finished unsuccessfully. For a condition this usually means "not met", not a program error.
RunningThe node has not finished yet. The parent can remember the place and continue on the next tick.
Empty displayed resultThe node has not run yet or its status was cleared.

Active, Not Active and Unknown are states of triggers and auras, not of nodes. A node that reads an aura turns its state into its own result.

An error or a cancellation does not always look like an ordinary Failure. On a manual run you can see an error. On an automatic run the root can log it and return Failure. Read the message, not only the colour.

Start with a minimal tree

  1. If the steps go one after another, start with Sequence. If you need one of several options, choose Selector or IfThenElse from the table below.
  2. At first, put Fixed Status nodes in place of real checks. You will see the route without any input or outside data. Add Wait for a pause.
  3. Run the tree with Tick BT Once, as in the first example. Then connect your real conditions and reactions.
TaskNode and what to know
Set up loading, activation and automatic entryRoot: holds the settings. MainTree is the automatic entry.
Run steps in orderSequence: goes until the first Failure, and on Running continues from the same place.
Pick the first option that worksSelector: skips Failure, stops on Success or Running.
Separate a condition and two branchesIfThenElse: runs only the chosen branch.
Check the state of your aurasAura Is Active: needs an aura that is already set up.
Call your aura's actionsExecute Aura: set up the aura itself separately.
Press a keyKey Press: this is input, so it needs the right window and delivery method.
Wait before continuingWait: waits for time, not for an event.
Limit how often something runsCooldown: not a pause before the next step.
Swap Success and FailureInverter: Running stays Running.
Treat any final result of the child as FailureForce Failure: Running stays Running.
Treat any final result of the child as SuccessForce Success: Running stays Running too.
Retry until it succeedsUntil Success: one attempt of the child per tick. Failure becomes Running.
Set a temporary test resultFixed Status: the value you choose is a setting, not the last result of a run.
Label a sectionComment: only a note, it checks nothing.
Check whether a behavior tree is activeIs Active
Check whether a key is heldCheck Key State
Ignore brief changes in a conditionDebounce
Interrupt work when a condition succeedsInterrupter
Move the pointer to a pointMouse Move
Move the pointer by an offsetMouse Move Rel.
Enter text in a target windowSend Text
Leave a loop or block in a macroBreak
Finish a macro with a chosen resultReturn

Where to find a node

Add new Node opens the list of templates. Toggle Nodes toolbar visibility shows the side panel. A node you add has to be connected to its parent.

A behavior tree has the Behavior Tree templates and the common nodes. A macro has its own Macro templates. Wait and IfThenElse exist in both modes, but they can work differently.

The set of nodes also depends on the installed modules. For example, image and ML search come from OpenCV, Key Press and Mouse Move come from the input module, and Aura Is Active comes from the base auras. The list can also include your own trees marked Is Shared.

Many conditions and actions can have one child. It runs only after Success, and its result can become the result of the node. If there are several steps, connect a Sequence.