70 lines
1.4 KiB
JSON
70 lines
1.4 KiB
JSON
{
|
|
"name": "monster",
|
|
"root": {
|
|
"id": 1,
|
|
"name": "Sequence",
|
|
"desc": "怪物测试AI",
|
|
"children": [
|
|
{
|
|
"id": 2,
|
|
"name": "Sequence",
|
|
"desc": "攻击",
|
|
"children": [
|
|
{
|
|
"id": 3,
|
|
"name": "GetHp",
|
|
"output": [
|
|
"hp"
|
|
],
|
|
"children": [
|
|
{
|
|
"id": 4,
|
|
"name": "Sequence",
|
|
"desc": "新建行为树",
|
|
"path": "workdir/subtree2.json"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": 7,
|
|
"name": "Cmp",
|
|
"args": {
|
|
"gt": 50,
|
|
"value": "hp"
|
|
},
|
|
"input": [
|
|
""
|
|
]
|
|
},
|
|
{
|
|
"id": 8,
|
|
"name": "TestB3",
|
|
"desc": "攻击",
|
|
"args": {
|
|
"str": "Attack!"
|
|
}
|
|
},
|
|
{
|
|
"id": 9,
|
|
"name": "Sequence",
|
|
"desc": "新建行为树",
|
|
"path": "workdir/subtree1.json"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": 12,
|
|
"name": "Log",
|
|
"desc": "逃跑",
|
|
"args": {
|
|
"message": "Run!"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"desc": "怪物测试AI",
|
|
"firstid": 1,
|
|
"group": [],
|
|
"import": [],
|
|
"declvar": []
|
|
} |