Repository navigation
Expand file tree
/
Copy pathexample.settings.json
More file actions
102 lines (102 loc) · 2.2 KB
/
Copy pathexample.settings.json
File metadata and controls
102 lines (102 loc) · 2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"apiKey": "your-api-key",
"characters": [
{
"name": "FighterGuy",
"actions": [
{
"name": "Move to attack pos",
"if": "$player.position != 3,-2",
"cascade": true,
"do": [
"move 3 -2"
]
},
{
"name": "Rest",
"if": "$player.hp < 100",
"do": [
"rest"
]
},
{
"name": "Attack",
"do": [
"fight"
]
}
],
"onFailure": {
"ArtifactsInventoryFull": {
"do": [
"move 4 1",
"foreach $item in $player.inventory.items do deposit $item $player.inventory.$item.count"
]
}
}
},
{
"name": "MinerGuy",
"actions": [
{
"name": "Leave items",
"if": "$player.inventory.count > 50",
"do": [
"move 4 1",
"foreach $item in $player.inventory.items do deposit $item $player.inventory.$item.count"
]
},
{
"name": "Move to mining pos",
"if": "$player.position != 2,0",
"do": [
"move 2 0"
]
},
{
"name": "Mine",
"do": [
"gather"
]
}
],
"onFailure": {
"ArtifactsInventoryFull": {
"do": [
"move 4 1",
"foreach $item in $player.inventory.items do deposit $item $player.inventory.$item.count"
]
}
}
},
{
"name": "CookerGuy",
"actions": [
{
"name": "Move to fishing pos",
"if": "$player.position != 4,2",
"cascade": true,
"do": [
"move 4 2"
]
},
{
"name": "Fish",
"do": [
"gather"
]
}
],
"onFailure": {
"ArtifactsInventoryFull": {
"do": [
"move 1 1",
"craft cooked_gudgeon $player.inventory.gudgeon.count",
"move 4 1",
"foreach $item in $player.inventory.items do deposit $item $player.inventory.$item.count"
]
}
}
}
]
}