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

Keeping inline roll result for further computation

1705058459
Aurelien C.
Pro
Sheet Author
Hey there, I’m currently trying out the reusing of inline rolls tricks, and I was wondering if you could re use the results of a roll for further computations. For example : I roll [[7d6]] which give the result 2,2,3,5,6,6,6. I need to then check from this roll how many dice are 3, how many are 6, and maybe drop the lowest 2. I was trying [[ [[7d6=3]] + [[$[[0]]=6]] + [[$[[0]]d2]] ]] but as expected it throws  INVALID INLINE ROLL! Does someone have an idea?
1705080931
Gauss
Forum Champion
You cannot use math on reused rolls. You will need a Mod (API script) to do that sort of thing. I suggest posting in the Mod (API Scripts) forum.