Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×

Help with Macro for a Table call

1664056238

Edited 1664056319
Hello. Currently making a macro that basically rolls a D20, and if it's a one, displays the result of the table. Currently I can get it to output a 1 value if it rolls a 1, and always display the table, but I don't know how to get it to only display the table if the result is a 1. Currently, this is the macro: &{template:atk} {{rname=Wild Magic Surge}} {{normal=1}} {{r1=[[d20=1]]}} {{desc=[[ 1t[Wild-Magic] ]]}} {{charname=Name}} Currently just trying to figure out how to duplicate the initial d20 roll and use it for how may times to roll on the table.  I was going to try and add another part to see if Tides of Chaos had been used already and automatically roll, but I figured that would be a lot more work.  Any help is appreciated!
You can use the d20=1 roll to select how many times to roll the table by using the inline roll directly. Then reference the roll for display like so &{template:atk} {{rname=Wild Magic Surge}} {{normal=1}} {{r1=$[[0.computed]]}} {{desc=[[ [[d20=1]]t[Wild-Magic] ]]}} {{charname=Name}}
RainbowEncoder said: You can use the d20=1 roll to select how many times to roll the table by using the inline roll directly. Then reference the roll for display like so &{template:atk} {{rname=Wild Magic Surge}} {{normal=1}} {{r1=$[[0.computed]]}} {{desc=[[ [[d20=1]]t[Wild-Magic] ]]}} {{charname=Name}} Yes, that did the job! Thank you!