Skip to main content

Decorator Nodes

A decorator node has exactly one child and modifies or controls that child's behavior.

Inverter

Inverts the child's result: SUCCESSFAILURE. RUNNING is unchanged.

Repeater

Repeatedly ticks the child until a configured repeat count is reached, or the child returns RUNNING / ERROR.

  • Property maxLoop: maximum repeats; a negative value means infinite.

RepeatUntilSuccess

Repeatedly runs the child until it returns SUCCESS (or maxLoop is reached).

RepeatUntilFailure

Repeatedly runs the child until it returns FAILURE (or maxLoop is reached).

MaxTime

Caps the child's running time. If it has not finished after maxTime (milliseconds), returns FAILURE.

Limiter

Caps how many times the child may run.

  • Property maxLoop: the maximum number of executions; beyond it, returns FAILURE.

Probability

Runs the child according to a probability. The decision is rolled once in OnOpen and stored in the blackboard, so a child that returns RUNNING is not interrupted on later ticks.

Supported properties (by precedence):

PropertyDescription
probability0.0–1.0, preferred
ratealias of probability
percent0–100 percentage form
skip_statusstatus returned when not running: success (default) / failure / error

Example: probability = 0.3 means a 30% chance to run the child, otherwise it returns skip_status.

NameEffect
InverterInvert result
RepeaterRepeat N times
RepeatUntilSuccessRepeat until success
RepeatUntilFailureRepeat until failure
MaxTimeLimit running time
LimiterLimit run count
ProbabilityRun by probability