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

Bizarre combined macro behavior

This is a very simple macro combination and I cannot explain, for the life of me, why my D4 Dice/Damage combo rolls correctly with the dice and modified combined, but all other Dice types roll normally but will not combine the modifier into a single value. This is purely cosmetic but I would love to find a solution if possible. (pardon the poor paragraph structure, second time posting) Example -  ?{#D4-Damage-Dice  | #Damage-Bonus } is a combination of -  ?{Damage Dice|/r 1d4| /r 2d4|/r 3d4|/r 4d4|/r 5d4|/r 6d4|/r 7d4|/r 8d4|/r 9d4|/r 10d4} ?{Damage Bonus|+0|+1|+2|+3|+4|+5|+6|+7|+8|+9|+10} When I roll or test, the results appear as -  rolling 10d4 | +10 } ( 1 + 2 + 1 + 4 + 3 + 3 + 4 + 4 + 2 + 1 ) +10 = 35 However, if I use any of the other dice + damage mod combinations, the modifier is applied afterwards for some reason  ?{#D6-Damage-Dice | #Damage-Bonus } ?{Damage Dice|/r 1d6|/r 2d6|/r 3d6|/r 4d6|/r 5d6|/r 6d6|/r 7d6|/r 8d6|/r 9d6|/r 10d6} ?{Damage Bonus|+0|+1|+2|+3|+4|+5|+6|+7|+8|+9|+10} rolling 10d6 ( 1 + 2 + 1 + 2 + 6 + 2 + 1 + 4 + 2 + 6 ) = 27 | +10 }
1622141145
Kraynic
Pro
Sheet Author
I'm not sure why it works at all, because I would think the pipe would separate the modifier from the initial roll all the time.  If you are willing to answer 3 queries, you could have all of that in one macro. /r ?{Number of Dice?|1}d?{Sides?|4|6|8|10|12|20}+?{Modifier?|0|1|2|3|4|5|6|7|8|9|10} You can move the most common number of dice sides to the first option in the Sides? query.  You could also end the Modifier? query right after the 0 (remove everything between it and the closing curly bracket) and just let people type in a modifier.  The plus is already in the macro, so it just needs the number, and a minus could be entered if the modifier is a penalty.  If there is a certain number of dice that is the most common, you could replace the 1 in the Number of Dice? query with whatever you want there.
Kraynic said: I'm not sure why it works at all, because I would think the pipe would separate the modifier from the initial roll all the time.  If you are willing to answer 3 queries, you could have all of that in one macro. /r ?{Number of Dice?|1}d?{Sides?|4|6|8|10|12|20}+?{Modifier?|0|1|2|3|4|5|6|7|8|9|10} You can move the most common number of dice sides to the first option in the Sides? query.  You could also end the Modifier? query right after the 0 (remove everything between it and the closing curly bracket) and just let people type in a modifier.  The plus is already in the macro, so it just needs the number, and a minus could be entered if the modifier is a penalty.  If there is a certain number of dice that is the most common, you could replace the 1 in the Number of Dice? query with whatever you want there. That is considerably cleaner and easier. Thank you :) I've just started building macros so still picking through the options available like 'sides' etc.