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

Macro For attack rolls for Custom system

So I'm in a game with a custom system and I have no idea how to make a macro/API script for attack rolls In this system when you roll maximum on a dice you double the lowest dice roll (Excluding 1 or another max roll), you can double a roll twice and if you roll a 1 you remove the lowest non-1 roll. The system only uses d6,d8,d10,d12 so if I roll 3d8 and get 2,3,8. it would be 15 instead of 13 or if I roll 1,3,7 it would be 8 total.  if you roll both a 1 and 8 they cancel each other. so 1,4,8, it would still be only 13.  another criteria is that 8 and 1 only affect each other when there is no other option so for example 2,8,8. 2 would be doubled then since 2 is already doubled then the 8 would be doubled. Same with 1 where if 1,1,3 is rolled the 3 is removed and since its only two 1s left then the roll total is 1.
1729534916
timmaugh
Pro
API Scripter
When you say, "You can double a roll twice" do you mean that you can respond to no more than 2 max-die-results? So, if you roll 4d8 and get: 2,8,8,8 You would total 36 (even though you got three 8s, you would only use 2 of them to double, and they would double different numbers)... OR Do you mean that a single die can be doubled more than once, so give the same result on 4d8 (2,8,8,8), you would effectively double the 2 twice, but then the third 8 would have to double a new number, so it would double an 8? In this case, your total would be 38?
1729537007

Edited 1729537249
I meant to say "Can't" My bad I meant  You can't double the same roll twice. So 2,8,8,8 would be 4+16+16+8, so the roll would be 44. So if you roll all 8s the its just doubled
also, a critical hit in the system is when you roll more than the max total without doubling, so 3d8 would crit if you get over 25. a feature that lets you crit when equal and more instead of only more