Skip to content
Discussion options

You must be logged in to vote

Typically, you would do something like

{1-2$$dog|dragon|cow|eagle}

That will give you,

dog
cow,dragon
eagle,dragon
...

if you want to change the separator from the default , you can do this:

{1-2$$-$$dog|dragon|cow|eagle}

which will produce:

dog
cow-dragon
eagle-dragon

You don't want a space between them though, and this doesn't work:
{1-2$$$$dog|dragon|cow|eagle}

A workaround might be:

{0-1$$dog|dragon|cow|eagle}{dog|dragon|cow|eagle}

or perhaps this would be neater.

{0-1$$__creature__}__creature__

You could also try Jinja templates, but the result is a little gross:

{% for i in range(10) %}
    {% prompt %}
        {{ random_sample("{1-2$$dog|dragon|cow|eagle}") | replace(",", "") }…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Psentinel
Comment options

@adieyal
Comment options

Answer selected by Psentinel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants