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

Inline roll help needed.

Hey forums, I got this macro I sometimes use for 3.x Its for Iaijutsu Focus based damage /roll [[1d4+?{Str}+?{Misc.|0}]] + [[{{(floor((1d20+?{Iaijutsu Focus}-10)/5))+1,1d1-1}kh1, 1d1+8}dh1]]d6 As some might notice, the first part is the weapon + stats and the second part rolls and calculates how many d6 (then rolls them)... the problem is that it takes too much space. As in, I make 5 or 6 attacks and if they all hit, its gonna clutter the whole chat when damage comes by... I've tried all I could to make the whole thing inline but it just doesn't seem to work. Either because the system cannot do inline rolls inside other inline rolls, and the system requires an inline roll to calculate how many d6 to roll for IF. Does anyone have an idea that might work?
1416508684
The Aaron
Roll20 Production Team
API Scripter
You are correct, you cannot nest inline rolls.
To Aaron's point, this modification should combine it all into a single inline roll. [[ ( 1d4+?{Str}+?{Misc.|0} ) + ( {{(floor((1d20+?{Iaijutsu Focus}-10)/5))+1,1d1-1}kh1, 1d1+8}dh1 ) d6 ]]
Mark G. said: To Aaron's point, this modification should combine it all into a single inline roll. [[ ( 1d4+?{Str}+?{Misc.|0} ) + ( {{(floor((1d20+?{Iaijutsu Focus}-10)/5))+1,1d1-1}kh1, 1d1+8}dh1 ) d6 ]] This does not work, sadly. I have tried it. The inner part does the calcs, but it doesnt roll the d6. so for example, If my Iai focus is 50+ id normally get 9d6, it doesnt roll 9d6, it just puts up a static 9 + w/e the str/misc and the 1d4 gave.
Ah right. I completely forgot that Grouped Rolls don't work with Calculated Dice rolls. You need to use a regular /Roll to combine the two. ex: /r [[ {10, @{CasterLevel} }kl1 ]]d6 You'd have to remove the check for negative results to get it to work entirely in-line
Yea, the problem with the normal roll is that it clutters up the chat. I mean, 5-7 attacks with IF and I gotta scroll up for like 20 seconds.
You could always break it into two macros. One to determine the number of attacks and another that uses a Query to ask you to type in that value to roll the actual attack. It would reside on two separate macro buttons, but being inline rolls, they would only take two lines of text in the chat box
tried that, the way macros are read, inline rolls are all made at the same time, so say I activate macro 1 that calls macro 2, they both have inline rolls, macro 1's inline roll depends on macro 2's inline roll result. Thus it either puts out "error" or just doesn't activate the only way I could think of making it fully inline is to have 2 macros one to calculate how many dice for each attack (I.e 1-9 dice) and another which as you said, I query the result. The problem is I would have to query like 1-7 different numbers each time I attack. that becomes annoying.