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

Adding total damage rolls of multiple attacks in 1 box

1499463032

Edited 1499463637
So let's say im doing a multi attack of 5 hits (which I have a macro for).. Now my GM tells me, of those 5 attacks, 3 landed. I want a macro where I can simply click on it, and input "3" which is the amount of hits landed and from there, it will spit out my total damage. so im a fighter, with a 1d8 sword + 5 str swinging 3 times I am trying to covert this formula into a roll20 formula - ignore the bracket usage  [1d8+5]x3 into a roll20 formula using ?{number of hit|0} or to simplify how can I tell roll20 macro NOT TO DO this  [[1d8+5]] = let's say 6 [[1d8+5]] = let's say 8 [[1d8+5]] = let's say 13 but instead, I want it to show the total amount only total is 27
NVM found a workable solution - requires 3 different macro but it's well represented macro 1 - Multi Attack VS AC &{template:default} {{name=Multi Attacks VS AC}} {{attack 1=[[1d20+[[@{pb}]]+@{npcd_dex_mod}]] [[1d20+[[@{pb}]]+@{npcd_dex_mod}]]}} {{attack 2=[[1d20+[[@{pb}]]+@{npcd_dex_mod}]] [[1d20+[[@{pb}]]+@{npcd_dex_mod}]]}} {{attack 3=[[1d20+[[@{pb}]]+@{npcd_dex_mod}]] [[1d20+[[@{pb}]]+@{npcd_dex_mod}]]}} {{attack 4=[[1d20+[[@{pb}]]+@{npcd_dex_mod}]] [[1d20+[[@{pb}]]+@{npcd_dex_mod}]]}} {{attack 5=[[1d20+[[@{pb}]]+@{npcd_dex_mod}]] [[1d20+[[@{pb}]]+@{npcd_dex_mod}]]}} {{attack 6=[[1d20+[[@{pb}]]+@{npcd_dex_mod}]] [[1d20+[[@{pb}]]+@{npcd_dex_mod}]]}} Macro 2 - Multi Attack - Total amount of Normal Damage &{template:default} {{name=Multi Attack Total Damage Points}} {{Hits Landed =[[?{Hits Landed|0}]] }}{{Damage=?{Total Damage Points?| 1, [[1d4+@{npcd_dex_mod}]] | 2, [[2d4+(@{npcd_dex_mod})*2]] | 3, [[3d4+(@{npcd_dex_mod})*3]] | 4, [[4d4+(@{npcd_dex_mod})*4]] | 5, [[5d4+(@{npcd_dex_mod})*5]] | 6, [[6d4+(@{npcd_dex_mod})*6]]}}} Macro 3 - Multi Attack - Total Critical Hit Landed and Damage &{template:default} {{name=Multi Attack Crit Damage Points}} {{Critical Hits Landed =[[?{Hits Landed|0}]] }}{{Damage=?{Total Damage Points?| 1, [[1d4]] | 2, [[2d4]] | 3, [[3d4]] | 4, [[4d4]] | 5, [[5d4]] | 6, [[6d4]]}}}
If they are all the same formula you could do [[?{Number of hits|1}d8+(?{Number of hits}*5)]]
1499467645

Edited 1499467761
LOL - Kyle G [[?{Number of hits|1}d8+(?{Number of hits}*5)]] ----- I HATE YOU LOLOLOLOL I think I tried that - and got an error.. may have been missing a ] or } or something and gave up.  I went about it the long way! curious what does this mean: ?{blah|1} the 1...??? I normally put 0.. what does the 1 do?
any idea to simplify my Macro 1 Attack vs AC? atm I have it spitting out 6 attacks. Can I tell it to spit whatever number I want it to w/o having to go through the 1, 2, 3, 4, 5, 6, command
1499478740
Lithl
Pro
Sheet Author
API Scripter
Nover C. said: ?{blah|1} the 1...??? I normally put 0.. what does the 1 do? It's the default value. ?{question} will give you an empty text box, ?{question|0} will give you a text box that already has "0" filled in, ?{question|1} will have "1" filled in, ?{question|answer} will have "answer" filled in, etc.