Skip to content

Dynamic Categories

Wes Cook edited this page Apr 25, 2024 · 1 revision

Category names support a special syntax for dynamic behaviour during generation. These are evaluated when the bingo card generates, and remain static afterwards.

Multiple tags can be used together in a single category which allows for complex interactions. A preview of possible states is shown during category previews.

Additional permutations do not count as multiple categories, and will not increase the chance of selection by the card generator.

Random Number

NUMBER[min,max]

Generates a random integer between the listed minimum and maximum value. Requires two integers as inputs, and the minimum must be lower than the maximum.

Random Term Selection

CHOOSE[term1|term2|term3...]

Selects a random option from the provided terms. Terms are strings separated by pipes, and allow for spaces and quotes. At least two terms must be given.

Example

A quick example showing multiple tags being combined.

{
    "version": 1,
    "name": "Dynamic Categories",
    "categories": [
        { "name": "Reread a book from NUMBER[2,4] years ago.  Describe your CHOOSE[favourite|most memorable] CHOOSE[characters|scenes] in under NUMBER[80,150] words." }
    ]
}

Which might generate as: Reread a book from 3 years ago. Describe your most memorable characters in under 102 words.

Clone this wiki locally