Groups: an optional groups list on a collection (frame rect, collapsed,
members, details), saved by TowerBoard and kept by JsonIO. Expanded groups
draw a frame behind their cards with a title bar; collapsed ones become one
compact card that lists the members' lit results, with pipes re-routed to
its inlet and right edge. Build mode adds multi-select (Ctrl/Shift-click,
Ctrl-drag), Group (Ctrl+G), drop in/out of frames, rename, ungroup, delete
with undo and a details editor.
Templates: TemplateKit saves cards, groups or selections with relative
positions, internal pipes and outside pipes by name, detects {$name}
parameters and inserts with fresh ids. TemplateLibrary keeps user templates
in user://templates and lists the built-in ones in templates/.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
51 lines
1.3 KiB
JSON
51 lines
1.3 KiB
JSON
{
|
|
"format_version": 1,
|
|
"name": "Ask how many, then repeat",
|
|
"description": "Asks the player for a number, then rolls a table that many times. Fill the table with your own results.",
|
|
"kind": "group",
|
|
"params": [
|
|
{"name": "what", "label": "What is rolled (plural)", "default": "Encounters"},
|
|
{"name": "most", "label": "Highest number allowed", "default": "6"}
|
|
],
|
|
"tables": [
|
|
{
|
|
"id": "ask",
|
|
"name": "How many {$what}?",
|
|
"kind": "choice",
|
|
"choice": "number",
|
|
"prompt": "How many {$what}?",
|
|
"min": "1",
|
|
"max": "{$most}",
|
|
"x": 22,
|
|
"y": 68,
|
|
"entries": [{"id": "e1", "text": "Answer", "pipes": ["repeat"]}]
|
|
},
|
|
{
|
|
"id": "repeat",
|
|
"name": "Repeat",
|
|
"kind": "loop",
|
|
"loop_expr": "answer",
|
|
"x": 342,
|
|
"y": 68,
|
|
"entries": [
|
|
{"id": "e1", "text": "{$what} {i}", "pipes": ["table"]},
|
|
{"id": "e2", "text": "Done"}
|
|
]
|
|
},
|
|
{
|
|
"id": "table",
|
|
"name": "{$what}",
|
|
"x": 662,
|
|
"y": 68,
|
|
"entries": [
|
|
{"id": "e1", "text": "Result 1"},
|
|
{"id": "e2", "text": "Result 2"},
|
|
{"id": "e3", "text": "Result 3"},
|
|
{"id": "e4", "text": "Result 4"}
|
|
]
|
|
}
|
|
],
|
|
"groups": [
|
|
{"name": "Repeat {$what}", "x": 0, "y": 0, "w": 940, "h": 330, "members": ["ask", "repeat", "table"]}
|
|
]
|
|
}
|