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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Macro Logic Structures

February 26 (12 years ago)

It would be great to have the ability for a simple if/then/else in the macros. also variables.


something as easy as:

/roll 1d20 as $atk

{if $atk > 15}

/roll 1d8 damage

{else}

Herald swings at the orc, but misses!


would add a lot of power to the macro system.

February 26 (12 years ago)

also the ability to pass variables in to the macro... so instead of $atk>15, be able to run the macro

#macro (22)

and in the macro:

{if $atk > $0}

February 26 (12 years ago)
Eric D.
KS Backer

The are currently no plans to provide logic or functions in dice expressions.