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

Is there a way to set an if/then statement as part of a macro?

For example: If I want to set a macro that rolls a D20 but then says something special if the roll is a natural 20?
Not possible, I'm afraid, no.
You could technically pull it off with a rollable Table but I expect that's far more involved than you're planning to get into. Since you have Mentor level access, you could always use the API to do all the conditionals you'd like.
Mark is right on the money. The easiest method without the API is a rollable table. If/then statements are an emphatic "No!" from the dev team.