I didn't know how to better put the title, but here it is: as many of you may know, when you score a critical hit in D&D/Pathfinder the inflicted damage is multiplied by a given number dependant on the weapon you're wielding, but while the bonus to damage goes directly multiplied, the base damage of the weapon is not to be rolled and then multiplied, but instead to be rolled a total of times equal to the multiplier.
For example, say I have a Halberd: its base damage is 1d10 and its crit multiplier is x3. Suppose that I have a +4 damage bonus and I score a critical hit; I'll deal a total of 3d10 + (4 * 3).
Now, I have a macro designed to build weapon-macros, in which I imput all the base values of the weapon. I could give it a base damage of 1d8, 2d6, 3d100 or whatever; and I could give it any crit multiplier: x2, x3, x100 or whatever again.
Now, in the macros resulting from that previous one, if I put it as such:
Code: Select all
[h: BaseWpnDmg = 2d6]
[h: CritMultiplier = 2]
[r: CritResult = BaseWpnDmg * CritMultiplier]
...I'll get that the variable damage is first rolled once, and then multiplied; rather, I'd need that the base damage is rerolled a number of times equal to CritMultiplier... how may I do it without adding tons of unnecessary code?