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 .
×
Create a free account

Macro to roll on table if dice result matches specific result (5e Wild Magic)

I have searched and searched, so I hope I am not beating a dead horse, but here goes. I have a player playing a 5e Wild Magic Sorcerer. I want a macro that can roll 1d20 and if the result is "1" then I want to roll on the table I made (which I can accomplish with&nbsp; [[1t[Wild-Magic]]] I feel like I should be able to accomplish this with the psuedo conditional statements discussed at&nbsp; <a href="https://wiki.roll20.net/Useful_Macros#Conditional_Statements" rel="nofollow">https://wiki.roll20.net/Useful_Macros#Conditional_Statements</a> , but I can't seem to figure that out. Is this even possible? If so, what am I missing?
Try this out: [[ [[1d20=1]]t[Wild-Magic] ]] It uses&nbsp; Target Number (Successes) to either make 1 or 0 table roll(s), depending on whether d20 roll result is a 1 or not.
Silvyre said: Try this out: [[ [[1d20=1]]t[Wild-Magic] ]] It uses&nbsp; Target Number (Successes) to either make 1 or 0 table roll(s), depending on whether d20 roll result is a 1 or not. That's it. You are awesome. Thank you so much! I hate the fact that I spent so much time trying to figure it out and it was that easy...
You're very welcome! :)
1458657081

Edited 1458657277
What happens if you pass a number greater then that table's values? (I have a similar question - but in this case the result needs to be passed to the table) <a href="https://app.roll20.net/forum/post/3137190/mirrorin" rel="nofollow">https://app.roll20.net/forum/post/3137190/mirrorin</a>...
Modnar Wylde said: (I have a similar question - but in this case the result needs to be passed to the table) <a href="https://app.roll20.net/forum/post/3137190/mirrorin" rel="nofollow">https://app.roll20.net/forum/post/3137190/mirrorin</a>... I replied in that thread.