Ara
Download

Search or run a command

Jump to a section or open an Ara link.

Command · behavior

behavior.transition.add

Add on <when> -> <to> to a state.
scope edit:scenenot idempotentnon-destructive

Params

Typed as BehaviorTransitionParams. Fields marked * are required.

from*

string
Source state name.
required

to*

string
Target state name.
required

when*

string
done, failed or a condition expression.
required

Examples

JSON (MCP ara_apply, batches)

{
  "cmd": "behavior.transition.add",
  "args": {
    "from": "Patrol",
    "to": "Chase",
    "when": "sees(nearest(\"player\"))"
  }
}

CLI

ara do behavior.transition.add --args '{"from":"Patrol","to":"Chase","when":"sees(nearest(\"player\"))"}' --why "…"