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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Simple Math Operations

It would be useful if there was a chat command for performing simple math operations. I have been setting up a generic character sheet for Mutants & Masterminds 3E, and it would be useful if I could have a macro automatically calculate DC's in addition to roll check results. Here is a sample ability: /em strikes with his fist! If hit, resist by toughness. Resist DC: 21 /r d20+@{Fighting}+@{Close Attack Modifier} What would be useful is if instead of entering the DC manually, the ability could calculate it for me simply by adding together one or more entered values and one or more attributes. To accomplish this, as far as I know, a new chat command would be needed such as "/math, /m" for performing simple math operations. The new ability would look like this: /em strikes with his fist! If hit, resist by toughness. /r d20+@{Fighting}+@{Close Attack Modifier} /m 15+@{Strength}+@{Close Damage Rank Modifier} Resist DC This would output like this: J B Smoove strikes with his fist! If hit, resist by toughness. J B Smoove: rolling 1d20+5+3= 22 15+4+2= 21 Resist DC This would simply further the functionality of attributes and make rolling, and updating characters for new attributes even easier.
1367805466
Gauss
Forum Champion
This can be accomplished using current tools. I have bolded the change in your Macro. /em strikes with his fist! If hit, resist by toughness. /r d20+@{Fighting}+@{Close Attack Modifier} /r 0d1+ 15+@{Strength}+@{Close Damage Rank Modifier} Resist DC - Gauss
Good idea but i think there should be a tool to have it say like /#hit A.20 B.8 to signal the enemy has 20 AC and resist 8 damage but the resistance only works if you hit. or something like that as the Macro is typed as something like this: /roll 1d20+5 {Vs. A} -Success- /roll 1d10 -{B.}  so you can type it quick and the "-Success-" (i'm not good at spelling) means only do the next action if the first action worked
Gauss said: This can be accomplished using current tools. I have bolded the change in your Macro. /em strikes with his fist! If hit, resist by toughness. /r d20+@{Fighting}+@{Close Attack Modifier} /r 0d1+ 15+@{Strength}+@{Close Damage Rank Modifier} Resist DC - Gauss Wow, thanks Gauss. Really appreciate your attention to the threads. Can't believe I couldn't figure that out for myself.
I still think it would be nice to be able to calculate without the need to list it as rolling a die, and that must be a bit new because before when I tried that kind of operation I always got error messages, but I mayt have done 1d0....
the error is from 1d0, 0d1 works