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 .
×

Need help with Macro

So, I have macro that I need some help with. Essentially, it's just a series of attack rolls. Basically, I have a character who gets a varying number of attacks with a primary natural weapon (don't ask how this happens). I want to be able to plug in a number for the number of attacks that I make, then have the macro roll the attack roll for each attack, adding the same bonus for each roll. As for damage, I made a macro that works really well. Here's what it looks like: /r {(?{Number of Non-Crit Hits|0}*2)d6+?{Number of Non-Crit Hits|0}*8+(?{Number of Crits|0}*4)d6+?{Number of Crits|0}*16} Not sure how helpful that is, though.
Not possible without using the API or a custom RollTemplate, both of which are Pro level subscription features and would require the GM/DM to install.
1450471189

Edited 1450471204
daaaang Thanks though.
Hi, have a look here (min 2 or so) <a href="https://www.youtube.com/watch?v=yYhB8SF5wLk" rel="nofollow">https://www.youtube.com/watch?v=yYhB8SF5wLk</a> As far as I understand, he does something simmular
Precisely HOW&nbsp; varied are the number of natural attacks? If the it's relatively few( or you're really methodical about using attributes to keep it neat) , you could write this up as a drop-down Query to let you select which one to use when you execute the macro. ?{How many attacks | One, [[ macro text&nbsp; ]]&nbsp; | Two, [[ macro text&nbsp; ]] | Three, [[ macro text ]] &nbsp;&nbsp; } ******************************************* A slightly cleaner/organized approach to this is to store the macro text as Attributes, and just call the values when you execute the macro. Assume:Attribute "OneHit" = [[1d20 + something ]] Attribute "OneDmg"= [[ 2d6 + something ]] Attribute "TwoHit" = [[1d20 + something ]] Attribute "TwoDmg" = [[ 4d6 + something ]] etc. ?{How many attacks | One,&nbsp; @{OneHit} for @{OneDmg} &nbsp;&nbsp; | Two, @{TwoHit} for @{TwoDmg}&nbsp; | Three, @{ThreeHit} for @{ThreeDmg}&nbsp; } That will simplify the actual macro in case you need to add or change things;&nbsp; and breaks the attack and damage rolls up so it's also easier to tweak as needed later on.
I already have the damage macro working. But yeah, that first thing was absolutely amazing! Thanks, I can do it now!
Drop down query to the rescue!