/tg/ Station 13 - Modules - TypesDefine Details

code/__DEFINES/ai/behavior_trees.dm

BT_EXECUTION_LOG_MAXMaximum number of execution indices the bt_viewer draining log can hold between polls.
BT_SUCCESSNode completed its goal and succeeded
BT_FAILURENode failed for one reason or the other
BT_RUNNINGNode has an action running;
BT_PARALLEL_SUCCESS_CHILD_ONEParallel succeeds when child 1 succeeds (default)
BT_PARALLEL_SUCCESS_ALLParallel succeeds only when all children succeed
BT_PARALLEL_FAILURE_CHILD_ONEParallel fails when child 1 fails (default)
BT_PARALLEL_FAILURE_ANYParallel fails when any child fails
BT_SUBPLAN_SUCCEED_ON_SUCCESSSubplan propagates BT_SUCCESS when all children succeed (default)
BT_SUBPLAN_LOOP_ON_SUCCESSSubplan resets and loops (returns BT_RUNNING) when all children succeed
BT_SUBPLAN_FAIL_ON_FAILURESubplan propagates BT_FAILURE when a child fails (default)
BT_SUBPLAN_LOOP_ON_FAILURESubplan resets and loops (returns BT_RUNNING) when a child fails
BT_ABORT_NONENo observer abort registered
BT_ABORT_SELFAbort this branch when the watched condition becomes FALSE
BT_ABORT_LOWER_PRIORITYAbort lower-priority running behaviors when the watched condition becomes TRUE
BT_ABORT_BOTHBoth BT_ABORT_SELF and BT_ABORT_LOWER_PRIORITY
BT_NODE_SELECTORSelector composite node
BT_NODE_SEQUENCESequence composite node
BT_NODE_PARALLELParallel composite node
BT_NODE_DECORATORDecorator (gate/condition) node
BT_NODE_LEAFLeaf behavior node
BT_NODE_SUBTREESubtree container node
BT_NODE_SUBPLANSubplan composite node
BT_DESC_TYPEKey storing the node typepath in a descriptor list
BT_DESC_CHILDRENKey storing the children list in a descriptor list
BT_DESC_OVERRIDE_IDKey storing the override slot ID in a subtree descriptor
BT_DESC_BINDINGSKey storing bindable parameter declarations in a compiled subtree descriptor
BT_COMPILED_PATHResolves the compiled JSON path from a behavior tree's source JSON path (e.g. "code/datums/ai/dog/dog.bt.json" -> "build/behavior_trees/datums/ai/dog/dog.bt.compiled.json").
SUBPLAN_ID_PET_COMMANDpet_command ID to override based on given pet command

Define Details

BT_ABORT_BOTH

Both BT_ABORT_SELF and BT_ABORT_LOWER_PRIORITY

BT_ABORT_LOWER_PRIORITY

Abort lower-priority running behaviors when the watched condition becomes TRUE

BT_ABORT_NONE

No observer abort registered

BT_ABORT_SELF

Abort this branch when the watched condition becomes FALSE

BT_COMPILED_PATH

Resolves the compiled JSON path from a behavior tree's source JSON path (e.g. "code/datums/ai/dog/dog.bt.json" -> "build/behavior_trees/datums/ai/dog/dog.bt.compiled.json").

BT_DESC_BINDINGS

Key storing bindable parameter declarations in a compiled subtree descriptor

BT_DESC_CHILDREN

Key storing the children list in a descriptor list

BT_DESC_OVERRIDE_ID

Key storing the override slot ID in a subtree descriptor

BT_DESC_TYPE

Key storing the node typepath in a descriptor list

BT_EXECUTION_LOG_MAX

Maximum number of execution indices the bt_viewer draining log can hold between polls.

BT_FAILURE

Node failed for one reason or the other

BT_NODE_DECORATOR

Decorator (gate/condition) node

BT_NODE_LEAF

Leaf behavior node

BT_NODE_PARALLEL

Parallel composite node

BT_NODE_SELECTOR

Selector composite node

BT_NODE_SEQUENCE

Sequence composite node

BT_NODE_SUBPLAN

Subplan composite node

BT_NODE_SUBTREE

Subtree container node

BT_PARALLEL_FAILURE_ANY

Parallel fails when any child fails

BT_PARALLEL_FAILURE_CHILD_ONE

Parallel fails when child 1 fails (default)

BT_PARALLEL_SUCCESS_ALL

Parallel succeeds only when all children succeed

BT_PARALLEL_SUCCESS_CHILD_ONE

Parallel succeeds when child 1 succeeds (default)

BT_RUNNING

Node has an action running;

BT_SUBPLAN_FAIL_ON_FAILURE

Subplan propagates BT_FAILURE when a child fails (default)

BT_SUBPLAN_LOOP_ON_FAILURE

Subplan resets and loops (returns BT_RUNNING) when a child fails

BT_SUBPLAN_LOOP_ON_SUCCESS

Subplan resets and loops (returns BT_RUNNING) when all children succeed

BT_SUBPLAN_SUCCEED_ON_SUCCESS

Subplan propagates BT_SUCCESS when all children succeed (default)

BT_SUCCESS

Node completed its goal and succeeded

SUBPLAN_ID_PET_COMMAND

pet_command ID to override based on given pet command