
Hey all,
I need a some help fine tuning a macro. The game system I'm working with is a pretty standard d10 dice pool system (ala L5R, 7th Sea, xWoD). It caps the player's dice pool at 10 dice and converts every 2 dice beyond that to 1 success. So if I was able to accumulate a dice pool of 14 dice for a roll, I would roll 10 dice and add 2 bonus successes to the results.
I asked about this about a year ago. Thankfully, Brandon W came through with a great solution:
/roll [[(@{Ability}+@{skill}+?{modifiers|0})d1kh10]]d10!sd>7
[[floor(((@{Ability}+@{skill}+?{modifiers|0})-10)/2)]] bonus successes, ignoring results < 0. While this works fine, I wonder if there is a way to zero out negative results in the second line. So that if the result of [[floor(((@{Ability}+@{skill}+?{modifiers|0})-10)/2)]] bonus successes is less than 0, it just returns a result of 0. Or even better, if less than 12 dice are rolled, the second emote, "# bonus successes..." never even comes up. Any ideas? This level of macro wizardry is beyond me. Thanks! (And thanks again, Brandon!) Tom