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

Attack roll Total Sum

Hi, I am not sure if this is the right place to post this question but I am gonna try! So, if I have a player who has a lot of attacks or what have you, is there a way in the macro to add all the attack damage totals at the end of the attack. That way, when the attacks miss they can subtract it from the total rather than add each attack each time. Any help or advice on something would be really appreciated, thanks!
Not without using some kind of api script.
Hi, Nick H. If I'm understanding you right, you would like to sum the results of many rolls while still seeing those rolls individually? (Moving this thread to the API forum.)
You could theoretically do this with PowerCards and a boatload of conditionals and roll id's.
I know a few people who pray that, on some distant day, that boatload will become a handful... ;)
1455837529

Edited 1455837555
Silvyre said: I know a few people who pray that, on some distant day, that boatload will become a handful... ;) Ok, maybe not a boatload... you'd do one damage roll with all the rolls in one inline roll at the end and then one conditional for each roll id/attack like this... !power {{ --name|Multi-Attack w/Total Damage --Attack 1:|[[ [$Atk1] 1d20]] vs AC ?{target|1|AC} --Attack 2:|[[ [$Atk2] 1d20]] vs AC ?{target|2|AC} --Attack 3:|[[ [$Atk3] 1d20]] vs AC ?{target|3|AC} --Attack 4:|[[ [$Atk4] 1d20]] vs AC ?{target|4|AC} --Total Damage:|[[ [$Dmg1] 1d6+3 + [$Dmg2] 1d6+3 + [$Dmg3] 1d6+3 + [$Dmg4] 1d6+3 ]] --?? $Atk1 < ?{target|1|AC} ?? !Dmg1|^* **-**[^Dmg1] --?? $Atk2 < ?{target|2|AC} ?? !Dmg2|^* **-**[^Dmg2] --?? $Atk3 < ?{target|3|AC} ?? !Dmg3|^* **-**[^Dmg3] --?? $Atk4 < ?{target|4|AC} ?? !Dmg4|^* **-**[^Dmg4] }}
Gotchya, okay thanks a lot. I was hoping I could do something in the Macro section of the individual character sheet. I have been nervous to mess with API because I don't want to mess up my PC's stuff.
PowerCards can't mess up anything on your character sheet. It has specifically been written to not change any attributes or abilities. It simply pulls information from the character sheet and sends it to the chat.
@HoneyBadger , I tried plugging this into the API, and it gave me an error saying: Unexpected token {
1455877074
Lithl
Pro
Sheet Author
API Scripter
The code block HB posted would be what you paste into a macro or into chat. Instructions for the actual PowerCards script and a link to the code can be found here:&nbsp; <a href="https://app.roll20.net/forum/post/2165711/script-p" rel="nofollow">https://app.roll20.net/forum/post/2165711/script-p</a>... As you can see if you visit the gist link in that thread, the script itself is over 1,000 lines long, not 12.