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

Getting two attributes to add up to a target number

I'm running a Budo game and trying to make a macro that asks for the dice to be rolled and calculate the target number based off of the relevant attribute+skill /roll ?{Offensive Dice}d10<@{Physical}+@{swords} /roll ?{Defensive Dice}d10<@{Physical}+@{swords} so it's rolling two pools of a variable amount of dice, against a target number equal to the Physical stat (4 in this case) plus swords (which is three 3) of 7 I cannot find a way to get the two variables of physical and swords to add up and become the target number. I've gotten a kludge going to use just swords and make that 7, but it makes character bookkeeping more difficult. Is there a way to get the two attributes to add up to a target number?
use brackets. /roll ?{Offensive Dice}d10<(@{Physical}+@{swords}) can't see why that wouldn't work. otherwise its rolling ?d10 vs the physical attribute, and then trying to add swords to that. by putting it in brackets you SHOULD be rolling ?d10, then comparing it to the physical and swords after adding it together.
1384145521

Edited 1384145656
Gauss
Forum Champion
Robert H., This will work: /roll ?{Offensive Dice}d10<[[@{Physical}+@{swords}]] /roll ?{Defensive Dice}d10<[[@{Physical}+@{swords}]] Michael H., With the current dice roller parenthesis or {} brackets won't work for this. However, turning the right half of the inequality into an Inline roll will work fine. - Gauss
the double brackets worked, thank you Gauss