I have 2 variables that I want the generator to randomly pick between existing. The generator already accounts for both these variables, that if one doesnt exist, to output 0 under its proper section, so that shouldnt be the issue.

How to I get it to do this?

  • 🎲VioneT@lemmy.worldM
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 days ago

    You need to have them in square brakcets to ‘run’ them:

    {[subAgilityMod = 1, '']|[subAction = advnonac, '']}
    // The (, '') just tells the square bracket to output nothing.
    

    Also if you are calling a list inside a square bracket, you don’t need to enclose it too in another square bracket.
    [subAction = advnonac]✅.
    [subAction = [advnonac]]❎.