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

(Deathwatch) Multiple Shots from Firearms

Is it possible to make a damage macro that i can input the number of shots that hit and roll the corresponding damage for each hit?  Example: macros as #Damage=[[2d10+5]] ?{How many hits|1|2|3|4|5|6|7|8|9|10}*#damage rolling 1 to 10 times the macro #Damage.  i dont know if im making myself clear but ask away
1618797594

Edited 1618798673
Okay after some whisky and ciggars i thought of this ?{ How many hits |1, [[2d10+5]] |2, [[2d10+5]][[2d10+5]] |3, [[2d10+5]][[2d10+5]][[2d10+5]] |4, [[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]] |5, [[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]] |6, [[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]] |7, [[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]] |8, [[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]] |9, [[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]] |10, [[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]][[2d10+5]] } Is there a way to make this wall of text go away? either nesting inside a macro or something? 
1619008949

Edited 1619009483
Andreas J.
Forum Champion
Sheet Author
Translator
Is there a way to make this wall of text go away? Once you've created a macro , you can save it in it's entirely a macro on your Collections tab, and then you never need to look at the massive wall of text Let's say you saved the above macro and&nbsp; call it " hits "). Then it's easy to just call this with #hits in the text chat at any time, or even just save it to the quick macro bar , from where you can call it at the press of a button. Improving the macro If you're asking help on improving the macro output, you could use Roll Templates to place each roll on a separate row, but that would make it harder to create the dropdown options for the macro. Due to how roll queries doesn't like complex things added to it, such as full macros or roll templates, we might need to do this in a roundabout way. By using Roll templates to better structure the roll results, and by splitting up each hit option into it's own macro and saving them separatly as hit1 through hit10 on the Collections tab, we are able to then create a final Chat Menu call , which when called will send to chat a menu with buttons to choose how many hits we want to roll. Here is an example where I built a chat menu that can choose form 1 to 4 hits, you should see the patter to create the full version. //hit1 macro &amp;{template:default} {{name=Hits}} {{Hit 1= [[2d10+5]]}} //hit2 macro &amp;{template:default} {{name=Hits}} {{Hit 1= [[2d10+5]]}} {{Hit 2= [[2d10+5]]}} //hit3 macro &amp;{template:default} {{name=Hits}} {{Hit 1= [[2d10+5]]}} {{Hit 2= [[2d10+5]]}} {{Hit 3= [[2d10+5]]}} //hit4 macro &amp;{template:default} {{name=Hits}} {{Hit 1= [[2d10+5]]}} {{Hit 2= [[2d10+5]]}} {{Hit 3= [[2d10+5]]}} {{Hit 4= [[2d10+5]]}} The chat menu macro, which you call directly (I set it to wishper the chat menu to GM, so that other players don't have to see the redundant chat, only the actual rolls that you select from the menu): /w gm &amp;{template:default} {{name=How Many Hits}} {{[1 Hit](!&amp;#13;#hit1) = [2 Hits](!&amp;#13;#hit2) }} {{ [3 Hits](!&amp;#13;#hit3) = [4 Hits](!&amp;#13;#hit4) }} Ends up looking like this: How my Collections tab looks like(having saved the 4 macros): Follow the links to learn more about individual components, and/or go to the main Macro creation guide page for more: <a href="https://wiki.roll20.net/Complete_Guide_to_Macros_%26_Rolls" rel="nofollow">https://wiki.roll20.net/Complete_Guide_to_Macros_%26_Rolls</a> Shorter Method? Another alternative, would be to use a massive amount of <a href="https://wiki.roll20.net/Complete_Guide_to_Macros_%26_Rolls#HTML_replacement" rel="nofollow">https://wiki.roll20.net/Complete_Guide_to_Macros_%26_Rolls#HTML_replacement</a> to add my individual roll templates examples for each amount of hits into the query to make it work, but that's kinda annoying method I don't often use, so you gonna have to wait of other replies to make it that way. The might be other methods to achieve similar results, but what I showed works, even if has an extra step, and requires creating&amp; saving 10 near-identical macros to avoid the HTML replacement headache.