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

Using the RESULT of a roll in a macro

So, my friends and I play with a variant on DnD 3.5 that the crit damage is a direct multiplication of the roll instead of rolling again x-1 times, where x is the crit multiplier. My question is:
Is it possible to write something that would able me to multiply the result of a roll instead of rerolling it x-1 times?
i.e.
What I want: (assuming the result was a critical roll)

If 4d6+3=15   then a crit dmg (X3)would show     crit dmg = 45 since its just picked the RESULT of the roll and made the multiplication as in 15*3 or RESULT*3

What I got: (assuming the result was a critical roll)

If 4d6+3 = 15   then a crit dmg (X3)would show    crit dmg = (well, anything between 7 and 27)*3

I know I could just create separate macros for attack rolls, then one for normal damage and another for crit damage. I want to know if its possible to create all in one single macro so the player just hit one button and then math tells him if it was a crit or not and if it was the crit dmg using this rule of ours.
March 29 (8 years ago)

Edited March 29 (8 years ago)
Andrew C
Marketplace Creator
Nope. You can't rely on 'memory' of something to do a calculation. You need to do it all at once or not at all UNLESS you use API.
March 29 (8 years ago)
The Aaron
Pro
API Scripter
PSA: The API is a Pro subscriber perk.
ok thanks for your help.