119 lines
2.0 KiB
JSON
119 lines
2.0 KiB
JSON
{
|
|
"version": "1.8.1",
|
|
"name": "test-vars",
|
|
"desc": "",
|
|
"prefix": "A",
|
|
"export": true,
|
|
"group": [
|
|
"Client",
|
|
"Server"
|
|
],
|
|
"import": [
|
|
"vars/declare-core.json",
|
|
"vars/declare-vars.json"
|
|
],
|
|
"vars": [
|
|
{
|
|
"name": "target",
|
|
"desc": "目标"
|
|
},
|
|
{
|
|
"name": "target1",
|
|
"desc": "其它目标"
|
|
}
|
|
],
|
|
"root": {
|
|
"id": "1",
|
|
"name": "Sequence",
|
|
"children": [
|
|
{
|
|
"id": "2",
|
|
"name": "Sequence",
|
|
"path": "vars/test-subtree.json"
|
|
},
|
|
{
|
|
"id": "4",
|
|
"name": "FindEnemy",
|
|
"output": [
|
|
"target1"
|
|
],
|
|
"args": {}
|
|
},
|
|
{
|
|
"id": "5",
|
|
"name": "Attack",
|
|
"input": [
|
|
"target1"
|
|
]
|
|
},
|
|
{
|
|
"id": "6",
|
|
"name": "Check",
|
|
"args": {
|
|
"value": "target[0].x > 0 "
|
|
}
|
|
},
|
|
{
|
|
"id": "7",
|
|
"name": "MoveToTarget",
|
|
"input": [
|
|
"target"
|
|
]
|
|
},
|
|
{
|
|
"id": "8",
|
|
"name": "Clear",
|
|
"output": [
|
|
"test"
|
|
]
|
|
},
|
|
{
|
|
"id": "9",
|
|
"name": "TestB3",
|
|
"args": {
|
|
"time": 1,
|
|
"open": true,
|
|
"check": "1",
|
|
"name": "1",
|
|
"status": "FAILURE"
|
|
}
|
|
},
|
|
{
|
|
"id": "10",
|
|
"name": "TestB3",
|
|
"args": {
|
|
"time": 1,
|
|
"open": true,
|
|
"check": "1",
|
|
"name": "1",
|
|
"status": "RUNNING"
|
|
}
|
|
},
|
|
{
|
|
"id": "11",
|
|
"name": "Clear",
|
|
"output": [
|
|
"context"
|
|
]
|
|
},
|
|
{
|
|
"id": "12",
|
|
"name": "Listen",
|
|
"input": [],
|
|
"output": [],
|
|
"args": {
|
|
"builtin": "afterRunFailure"
|
|
}
|
|
},
|
|
{
|
|
"id": "13",
|
|
"name": "TestOneof",
|
|
"input": [
|
|
"context"
|
|
],
|
|
"output": [],
|
|
"args": {}
|
|
}
|
|
]
|
|
}
|
|
} |