Modding:BehaviorTrees:Decorator

From Starbounder - Starbound Wiki
Jump to: navigation, search
Mining Hazard Sign.png
Work In Progress!
Mining Hazard Sign.png

This article or section is currently in the process of an expansion or major restructuring.
You are welcome to assist in its construction by editing it as well.

Last edited by Zoniventris on 2020-06-15 04:08:50.

Decorator nodes are one type of node used to build the behavior trees governing Starbound's NPC AI. These nodes take exactly one child node, and they perform an operation on that node's output.

All decorator nodes are defined in /behaviors/nodes/decorator.nodes.

Decorator Nodes
Node Name Properties Description
inverter n/a Succeeds when the child node fails and fails when the child node succeeds.
failer n/a
succeeder n/a
limiter limit
repeater maxLoops, untilSuccess
cooldown cooldown, onFail, onSuccess
optional shouldRun Runs the child node only if shouldRun is true.
logResult text
filter list, type
each list, type


Quick Navigation