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 here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
I've been looking around in a few different places and can't find what I'm looking for. I was hoping to find a Macro to add to the damage section of a spell that was 1d6 + 1d6 for every two levels beyond level 1.
Ricky M. said: 1d6 + 1d6 for every two levels beyond level 1. Sounds like ((@{relevant_level_attribute}) / 2)d6 might work (after replacing the Attribute name, of course).
Silvyre said: Ricky M. said: 1d6 + 1d6 for every two levels beyond level 1. Sounds like ((@{relevant_level_attribute}) / 2)d6 might work (after replacing the Attribute name, of course). That would come out as 2 at level 4, 3 at level 6, etc. 1 + 1 per 2 should be 1 at 1, 2 at 3, 3 at 5 etc. try [[floor((@{level}+1)/2)]]d6 which comes out to 1 at level 1, 2 at level 3, etc.
Franky H. said: Silvyre said: Ricky M. said: 1d6 + 1d6 for every two levels beyond level 1. Sounds like ((@{relevant_level_attribute}) / 2)d6 might work (after replacing the Attribute name, of course). 1 + 1 per 2 should be 1 at 1, 2 at 3, 3 at 5 etc. Actually, that is how round((@{relevant_level_attribute}) / 2) functions: @{relevant_level_attribute} round((@{relevant_level_attribute}) / 2) 1 1 2 1 3 2 4 2 5 3 6 3 7 4 8 4 9 5 10 5 ()d6 implicitly functions as [[round()]]d6
Franky H. said: Silvyre said: ()d6 implicitly functions as [[round()]]d6 I was unaware of that. Couldn't find it documented in the Wiki, so added it here .