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

Missile Hit Macro - Can it be done?

Good day to all, I need to add to the following a way of rolling multiple times on the 'Weapon Size' chosen and add a modifier to the dice roll. &{template:default} {{name = **Missiles Hit** }} {{?{Weapon Size | SRM 2 [[ 1d2 ]] | SRM 4 [[ 1d4 ]] | SRM 6 [[ 1d6r<1 ]] | LRM 5 [[ 1d5 ]] | LRM 10 [[ 1d10r<2 ]] | LRM 15 [[ 1d15r<4 ]] | LRM 20 [[ 1d20r<5 ]]} }} So in the drop down menu I select SRM 6. It then asks how many times do I need to roll the dice. Then if there are any modifiers to the roll. Can this be done in a Macro? Thanks in advance for any answer.  
Yes, quite easily with queries for the dice numbers: &{template:default} {{name= **Missiles Hit:  ?{Number of dice? |1 } ** }} {{ [[?{Number of dice? } ?{Weapon size? |SRM 2,d2 |SRM4,d4 |SRM 6,d6r<1 |LRM 5,d5 |LRM 10,d10r<2 |LRM 15,d15r<4 |LRM 20,d20r<5}+?{Modifiers? |0} ]] }} If you want the modifier to apply to each roll instead, rather than to the total, instead use &{template:default} {{name= **Missiles Hit:  ?{Number of dice? |1 } ** }} {{ [[?{Number of dice? } ?{Weapon size? |SRM 2,d2 |SRM4,d4 |SRM 6,d6r<1 |LRM 5,d5 |LRM 10,d10r<2 |LRM 15,d15r<4 |LRM 20,d20r<5}+?{Number of dice?}*?{Modifiers? |0} ]] }} Though with this, if you have negative modifiers, you may get problems with negative individual rolls. If you want each individual roll shown, that gets a lot more complicated and while doable to an extent, I'm not going to go through the trouble of writing out if it's not what you need.
Thank you. I will try those out as soon as I can.  Always good to have fresh eyes look at things. I thought it could be done just wasn’t sure how.  Thanks again.