
So I have two problems. 1. I want to roll X number of dice, where the macro decides what X is. So I would have Xd6 or something equivalent. EDIT: I've figured out how to do this one. 2. I want to determine X by taking the minimum of a variable and a constant. Something like min(@{LVL}, 5) Putting them together, I would want something like [[min(@{LVL},5)d6]] which would be read as [[3d6]] if LVL were 3, and 5d6 if LVL were greater than 5. Can I do this with basic macros, or do I need the API?