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

Help with macro for OVA style rolling?

So to start off, I get the concept of macros but by the time I get off work and get the house stuff done, my brain is too foggy to learn code. So, I'm asking for help in doing something I literally have no idea how to phrase in computerese. The OVA system rolls are different than of most systems.  I need a way to roll an input specified number of d6, then instead of adding them all for a sum total, I need to break the roll down and combine any matching rolls to make a higher number, then keep only the highest matching set. Example.  I roll 6d6 and get 1 6 4 3 4 1 - the two ones get added together to make 2, and the two fours get added together to make 8. 8 is the highest result, so it's my keeper. I get the kh for keeping the 8, but I cannot for the life of me figure out how to ask a computer to add similar numbers together within a roll.  This type of roll is the basis of the OVA system, any bonuses or penalties affect how many dice are rolled rather than affecting the final number.  Now, I don't strictly NEED a macro script to be able to play with my group, since the dialog lets us know how many of what was rolled anyway - but I won't be able to use any of the other macros for initiative or beating a difficulty if I can't get the basic roll in a macro.  For all I know, this is an impossible task.  But I think I'm just not taking the right angle on this. I haven't tried to run a macro since my early college days in IRC where "/me slaps you with a fish" was still funny.  Any help at all would be appreciated.  I'm feeling very out of my league here, but it never hurts to ask.
Not possible without the use of an API script. Best bet would be to sort the dice in descending order. /roll 6d6sd The sd at the end means sort descending. 
Well, I was afraid of that.  Since I recently moved (thus the need for an online way for my group to game) I can't justify the subscription just so I can hurt myself learning API scripting.  Not yet anyway. Thank you for at least letting me know.  I'm glad I couldn't think of a way to do it because there isn't one, rather than because I'm tired and not thinking hard enough.
When you get around to it, look at The Aaron's Cthulhutech dice script.  Its the same kind of thing, but includes the add bit of counting triples and straights (3,4,5 added together).