Kordishal / generator-issues

A repository to collect and discuss feature requests for the World Anvil Generators.
https://www.worldanvil.com/studio/generators
2 stars 0 forks source link

Number Generator as input for Router #5

Closed Kordishal closed 3 years ago

Kordishal commented 3 years ago

Is your feature request related to a problem? Please describe. The router currently does not accept the output of the number generator and always does not match the value.

Describe the solution you'd like The router should match the numbers as strings.

Kordishal commented 3 years ago

This applies to Dice Generator as well

Kordishal commented 3 years ago
{
    "roll_test_var": {
        "roll_test_var-10": 10
    },
    "roll_test_var2": {
        "roll_test_var2-2": 2
    },
    "roll_test_var3": {
        "roll_test_var3-12": 12
    }
}

Router

{
  "source": {
    "roll_test_var-1": "do something on roll 1",
    "roll_test_var-2": "do something on roll 2",
    ...
    "roll_test_var-10": "this is the one selected on roll 10"
  }
}
iamromeo commented 3 years ago

done