
Hey everyone, trying to put together a dice rolling thing for the OVA system, but my partner is having a lot of issues coding the script we need for our game. The core dice rolling mechanic of OVA is that you roll X D6's (X is determined by your character's levels in "abilities" and "weaknesses" that add or take away from the number of dice rolled), then all the duplicate numbers are added together, with the highest number rolled being the result of the roll (so a roll of 6, 6, 4, 4 and 2 would be a roll of 12, since the 2 6's are added together). What I've been doing in the past for OVA games is just using the following macro /roll ?{Dice|2}d6s, then adding them together myself, but I'd prefer something that outputs the highest value, (or the lowest, in the case of a roll that you have so many penalties for it that your dice pool for the roll becomes '0' or a negative number of dice). It'd also be cool if you could see the dice roll on a mouse over of the output result, just so people can check what was rolled for their own peace of mind. Thanks for taking the time to read my request, have a good day.