-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.json
97 lines (97 loc) · 3.3 KB
/
example.json
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
{
"nodes": [
{
"uniq_id": "uniq_id_12",
"pos_x": -114.0,
"pos_y": -1089.0,
"width": 312.0,
"height": 326.0,
"nexts": [],
"type": "CONDITION",
"name": "Check Roll",
"description": "see final one 'need_roll'\nif see need_roll is True give me True \nelse if see need_roll is false, give me False",
"tool": "",
"true_next": "uniq_id_11",
"false_next": "uniq_id_10"
},
{
"uniq_id": "uniq_id_11",
"pos_x": 284.0,
"pos_y": -1239.0,
"width": 287.0,
"height": 393.0,
"nexts": [
"uniq_id_7"
],
"type": "STEP",
"name": "roll",
"description": "use dice to roll\nprovide the func_name without any parentheses or additional characters.\n",
"tool": "RollD20",
"true_next": null,
"false_next": null
},
{
"uniq_id": "uniq_id_10",
"pos_x": 390.0,
"pos_y": -647.0,
"width": 301.0,
"height": 442.0,
"nexts": [
"uniq_id_7"
],
"type": "STEP",
"name": "Player",
"description": "As a Player, I want to perform an action. (in short, we do fast play) Output the JSON in the format: {{\"action\": \"palyer: I want xxxx\"}}",
"tool": "",
"true_next": null,
"false_next": null
},
{
"uniq_id": "uniq_id_7",
"pos_x": -629.0,
"pos_y": -795.0,
"width": 475.0,
"height": 466.0,
"nexts": [
"uniq_id_12"
],
"type": "STEP",
"name": "Dungeon Master",
"description": " As DnD DM, describe the current scenario for the player. (in short, we do fast play) sometimes roll dice, sometime not, if player roll roll_number, you need explain what the roll affect result, start from your roll x blablabla. Output the JSON in the format: {{\"scenario\": \"DM: your action description\", \"need_roll\": True/False}} \n\n(make the story interleave roll and not roll, 50%-50%)",
"tool": "",
"true_next": null,
"false_next": null
},
{
"uniq_id": "uniq_id_1",
"pos_x": -904.0,
"pos_y": -1108.0,
"width": 200.0,
"height": 200.0,
"nexts": [
"uniq_id_7"
],
"type": "START",
"name": "Node",
"description": "",
"tool": "",
"true_next": null,
"false_next": null
},
{
"uniq_id": "uniq_id_9",
"pos_x": -495.0,
"pos_y": -1215.0,
"width": 280.0,
"height": 283.0,
"nexts": [],
"type": "TOOL",
"name": "",
"description": "import random\n\n@tool\ndef RollD20() -> int:\n \"\"\"\n :return: number\n \"\"\"\n random_number = random.randint(1, 20)\n return random_number\n",
"tool": "",
"true_next": null,
"false_next": null
}
],
"node_counter": 15
}