TableTower/templates/ask-and-repeat.json

52 lines
1.3 KiB
JSON
Raw Normal View History

{
"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"]}
]
}