v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
80
assets/devel/behaviors/pathdebug.behavior
Normal file
80
assets/devel/behaviors/pathdebug.behavior
Normal file
|
@ -0,0 +1,80 @@
|
|||
{
|
||||
"name": "pathdebug",
|
||||
"description": "",
|
||||
"scripts": [
|
||||
"/scripts/actions/query.lua",
|
||||
"/scripts/actions/world.lua",
|
||||
"/scripts/actions/movement.lua"
|
||||
],
|
||||
"parameters": {},
|
||||
"root": {
|
||||
"title": "cooldown",
|
||||
"type": "decorator",
|
||||
"name": "cooldown",
|
||||
"parameters": {
|
||||
"cooldown": {"value": 1},
|
||||
"onFail": {"value": true},
|
||||
"onSuccess": {"value": true}
|
||||
},
|
||||
"child": {
|
||||
"title": "sequence",
|
||||
"type": "composite",
|
||||
"name": "sequence",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
{
|
||||
"title": "findObject",
|
||||
"type": "action",
|
||||
"name": "findObject",
|
||||
"parameters": {
|
||||
"name": {"value": "apexstatue3"},
|
||||
"orderBy": {"value": "nearest"},
|
||||
"position": {"key": "self"},
|
||||
"range": {"value": 50}
|
||||
},
|
||||
"output": {
|
||||
"entity": "banana"
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "entityPosition",
|
||||
"type": "action",
|
||||
"name": "entityPosition",
|
||||
"parameters": {
|
||||
"entity": {"key": "banana"}
|
||||
},
|
||||
"output": {
|
||||
"position": "bananaPos"
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "moveToPosition",
|
||||
"type": "action",
|
||||
"name": "moveToPosition",
|
||||
"parameters": {
|
||||
"avoidLiquid": {"value": true},
|
||||
"groundPosition": {"value": true},
|
||||
"maxGround": {"value": 5},
|
||||
"minGround": {"value": -5},
|
||||
"position": {"key": "bananaPos"}
|
||||
},
|
||||
"output": {}
|
||||
},
|
||||
{
|
||||
"title": "interactObject",
|
||||
"type": "action",
|
||||
"name": "interactObject",
|
||||
"parameters": {
|
||||
"entity": {"key": "banana"}
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "runner",
|
||||
"type": "action",
|
||||
"name": "runner",
|
||||
"parameters": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
159
assets/devel/behaviors/runarounder.behavior
Normal file
159
assets/devel/behaviors/runarounder.behavior
Normal file
|
@ -0,0 +1,159 @@
|
|||
{
|
||||
"name": "runarounder",
|
||||
"description": "",
|
||||
"scripts": [
|
||||
"/scripts/actions/math.lua",
|
||||
"/scripts/actions/position.lua",
|
||||
"/scripts/actions/movement.lua",
|
||||
"/scripts/behavior.lua",
|
||||
"/scripts/actions/time.lua"
|
||||
],
|
||||
"parameters": {},
|
||||
"root": {
|
||||
"title": "sequence",
|
||||
"type": "composite",
|
||||
"name": "sequence",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
{
|
||||
"title": "repeater",
|
||||
"type": "decorator",
|
||||
"name": "repeater",
|
||||
"parameters": {
|
||||
"maxLoops": {"value": -1},
|
||||
"untilSuccess": {"value": true}
|
||||
},
|
||||
"child": {
|
||||
"title": "sequence",
|
||||
"type": "composite",
|
||||
"name": "sequence",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
{
|
||||
"title": "random",
|
||||
"type": "action",
|
||||
"name": "random",
|
||||
"parameters": {
|
||||
"max": {"value": 100},
|
||||
"min": {"value": -100}
|
||||
},
|
||||
"output": {
|
||||
"number": "xPos"
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "random",
|
||||
"type": "action",
|
||||
"name": "random",
|
||||
"parameters": {
|
||||
"max": {"value": 100},
|
||||
"min": {"value": -100}
|
||||
},
|
||||
"output": {
|
||||
"number": "yPos"
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "offsetPosition",
|
||||
"type": "action",
|
||||
"name": "offsetPosition",
|
||||
"parameters": {
|
||||
"offset": {"value": ["xPos", "yPos"]},
|
||||
"position": {"key": "spawn"}
|
||||
},
|
||||
"output": {
|
||||
"position": "move"
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "parallel",
|
||||
"type": "composite",
|
||||
"name": "parallel",
|
||||
"parameters": {
|
||||
"fail": {"value": 1},
|
||||
"success": {"value": -1}
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"title": "moveToPosition",
|
||||
"type": "action",
|
||||
"name": "moveToPosition",
|
||||
"parameters": {
|
||||
"avoidLiquid": {"value": true},
|
||||
"groundPosition": {"value": true},
|
||||
"maxGround": {"value": 5},
|
||||
"minGround": {"value": -5},
|
||||
"position": {"key": "move"},
|
||||
"run": {"value": true}
|
||||
},
|
||||
"output": {
|
||||
"pathfinding": "pathfinding"
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "dynamic",
|
||||
"type": "composite",
|
||||
"name": "dynamic",
|
||||
"parameters": {},
|
||||
"children": [
|
||||
{
|
||||
"title": "inverter",
|
||||
"type": "decorator",
|
||||
"name": "inverter",
|
||||
"parameters": {},
|
||||
"child": {
|
||||
"title": "hasFlag",
|
||||
"type": "action",
|
||||
"name": "hasFlag",
|
||||
"parameters": {
|
||||
"name": {"key": "pathfinding"}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "inverter",
|
||||
"type": "decorator",
|
||||
"name": "inverter",
|
||||
"parameters": {},
|
||||
"child": {
|
||||
"title": "timer",
|
||||
"type": "action",
|
||||
"name": "timer",
|
||||
"parameters": {
|
||||
"time": {"value": 3}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "timer",
|
||||
"type": "action",
|
||||
"name": "timer",
|
||||
"parameters": {
|
||||
"time": {"value": [2, 10]}
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "moveToPosition",
|
||||
"type": "action",
|
||||
"name": "moveToPosition",
|
||||
"parameters": {
|
||||
"avoidLiquid": {"value": true},
|
||||
"groundPosition": {"value": true},
|
||||
"maxGround": {"value": 5},
|
||||
"minGround": {"value": -5},
|
||||
"position": {"key": "spawn"}
|
||||
},
|
||||
"output": {
|
||||
"pathfinding": "isPathfinding"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue