Hi all! i need some help with a new game system i would like to implement as an API. The game is Anime e Sangue (Souls and Blood), an italian product of Matteo Cortini and Leonardo Moretti (authors of another famous italian RPG, Sine Requie). as the second edition rapidly approaches, i would like to create some congenial macros to roll better. here some info; Both system use a D20 pool system. First edition; First decide how many you roll. Roll the dice, sum any double result, and keep the highest. Then, if you rolled 2 or more dice, add (dice*2) to the highest result. Three examples; Roll 3 dice, get 15 10 8. result: 15 + 6 = 21. Roll 3 dice, get 15 15 8. result: (15+15) + 6 = 36. Roll 3 dice, get 15 4 4. result: 15 + 6 = 21. the double 4 is discarded as is lower than the highest result. The difficult / missing part (in the standard modules) is the "sum the doubles"; i've studied the Macro Wiki, but i couldn't find anything about it. For the second edition, the system is different. first, decide how many Action Dice you roll. then, for any 2 Action Dice rolled, you gain an additional Bonus Die. Also, you could have a number of Bonus Dice granted from effects. Roll all the dice, then sum ALL the doubles together, and keep the highest score I'll provide some examples; Roll 2 Action Dice. get to roll 3. get: 10 20 3. Result: 20. Roll 3 Action Dice. get to roll 4. get: 19 8 8 4. Result : 19. the double 8 is discarded as is lower than the highest result. Roll 3 Action Dice. get to roll 4. get: 10 10 4 4. Result: 10+10+4+4 = 28. Roll 2 action dice and 3 Bonus dice. get to roll (2+1)+3 = 6 . get 1 1 2 2 15 20. Result: 20. the 6 (1+1+2+2) is discarded as is lower than the highest result. ______________________________________________________________________________ As you can see, both editions have incredibly wild result. I do have some experience on JavaScript, but i'm not an expert with the creation of a specific Roll20 API. Is there anyone who could help ?