diff --git a/example.json b/example.json index 718a9d9..8297850 100644 --- a/example.json +++ b/example.json @@ -1,4 +1,6 @@ -{ +[ + { + "name": "root", "nodes": [ { "uniq_id": "uniq_id_12", @@ -111,5 +113,6 @@ } } ], - "node_counter": 15 - } \ No newline at end of file + "serial_number": 15 + } +] \ No newline at end of file diff --git a/lottery.json b/lottery.json index d28e484..88bc087 100644 --- a/lottery.json +++ b/lottery.json @@ -1,4 +1,6 @@ -{ +[ + { + "name": "root", "nodes": [ { "uniq_id": "uniq_id_1", @@ -92,5 +94,6 @@ } } ], - "node_counter": 7 - } \ No newline at end of file + "serial_number": 7 + } +] \ No newline at end of file diff --git a/save_file.json b/save_file.json index 765a4b1..52984e5 100644 --- a/save_file.json +++ b/save_file.json @@ -1,4 +1,6 @@ -{ +[ + { + "name": "root", "nodes": [ { "uniq_id": "uniq_id_1", @@ -73,5 +75,6 @@ } } ], - "node_counter": 5 - } \ No newline at end of file + "serial_number": 5 + } +] \ No newline at end of file diff --git a/subgraph.json b/subgraph.json new file mode 100644 index 0000000..d698292 --- /dev/null +++ b/subgraph.json @@ -0,0 +1,86 @@ +[ + { + "name": "root", + "nodes": [ + { + "uniq_id": "1", + "type": "START", + "name": "Node 1", + "description": "", + "tool": "", + "nexts": [ + "2" + ], + "true_next": null, + "false_next": null, + "ext": { + "pos_x": 233, + "pos_y": 134, + "width": 150, + "height": 200, + "info": null + } + }, + { + "uniq_id": "2", + "type": "SUBGRAPH", + "name": "buy dog", + "description": "", + "tool": "", + "nexts": [], + "true_next": null, + "false_next": null, + "ext": { + "pos_x": 629, + "pos_y": 193, + "width": 150, + "height": 200, + "info": null + } + } + ], + "serial_number": 3 + }, + { + "name": "buy dog", + "nodes": [ + { + "uniq_id": "1", + "type": "START", + "name": "Node 1", + "description": "", + "tool": "", + "nexts": [ + "2" + ], + "true_next": null, + "false_next": null, + "ext": { + "pos_x": 210, + "pos_y": 105, + "width": 150, + "height": 200, + "info": null + } + }, + { + "uniq_id": "2", + "type": "STEP", + "name": "Node 2", + "description": "feed a dog", + "tool": "", + "nexts": [], + "true_next": null, + "false_next": null, + "ext": { + "pos_x": 640, + "pos_y": 184, + "width": 150, + "height": 200, + "info": null + } + } + ], + "serial_number": 3 + } +] \ No newline at end of file diff --git a/trpg_play.json b/trpg_play.json index d631746..1eb38b1 100644 --- a/trpg_play.json +++ b/trpg_play.json @@ -1,19 +1,21 @@ -{ +[ + { + "name": "root", "nodes": [ { "uniq_id": "uniq_id_10", - "nexts": [ - "uniq_id_7" - ], "type": "STEP", "name": "Step2", - "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\"}}\nIf you see need_roll, then output json {{\"action\": \"palyer: roll x\"}}, you random gen x", + "description": "As a Player, I want to perform an action. (in short, we do fast play) Output the JSON in the format: {{\"action\": \"palyer:because blablabla I want xxxx\"}}", "tool": "", + "nexts": [ + "uniq_id_7" + ], "true_next": null, "false_next": null, "ext": { - "pos_x": 799.4, - "pos_y": 141.1999999999999, + "pos_x": 960.009555910482, + "pos_y": 148.07991229613796, "width": 358, "height": 459, "info": "" @@ -21,18 +23,18 @@ }, { "uniq_id": "uniq_id_7", - "nexts": [ - "uniq_id_10" - ], "type": "STEP", "name": "Step1", - "description": "As DnD DM, describe the current scenario for the player. (in short, we do fast play) sometimes roll dice, sometimes not. player roll , if > 0 you need explain what the roll affect result, start from your roll blablabla Output the JSON in the format: {{\"scenario\": \"DM: your action description\", \"need_roll\": True/False}} 50% case need roll", + "description": "As DnD DM, describe the next story for the player. (in short, we do fast play) output format: {{\"story\": \"DM: because you blablabla\"}} ", "tool": "", + "nexts": [ + "uniq_id_10" + ], "true_next": null, "false_next": null, "ext": { - "pos_x": 324, - "pos_y": -119.4, + "pos_x": 402.26505848642046, + "pos_y": 12.264473582491112, "width": 388, "height": 527, "info": "" @@ -40,23 +42,43 @@ }, { "uniq_id": "uniq_id_1", + "type": "STEP", + "name": "Node", + "description": "As DnD DM, describe the secene for the player. (in short, we do fast play) output format: {{\"scenario\": \"DM: \"}} ", + "tool": "", "nexts": [ "uniq_id_7" ], + "true_next": null, + "false_next": null, + "ext": { + "pos_x": -44.70780224171054, + "pos_y": -59.723776200616605, + "width": 264, + "height": 351, + "info": "" + } + }, + { + "uniq_id": "11", "type": "START", - "name": "Node", + "name": "Node 11", "description": "", "tool": "", + "nexts": [ + "uniq_id_1" + ], "true_next": null, "false_next": null, "ext": { - "pos_x": 37, - "pos_y": 54, - "width": 200, + "pos_x": -316.4791241918573, + "pos_y": -129.3754157722915, + "width": 150, "height": 200, - "info": "" + "info": null } } ], - "node_counter": 11 - } \ No newline at end of file + "serial_number": 12 + } +] \ No newline at end of file