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 .
×

Help) repeating inline roll?

Is there any macro or api that can show multiple rolls in individual result? I wanna roll [[?{how many|}d6]] and have result as [[1d6]][[1d6]][[1d6]]..... x (how many?) times, instead of sum of all results. So what I want is, -allowing my players select the number of dice they're gonna roll. -checking each results as inline roll, or any, without putting my cursor on.
1622722767
GiGs
Pro
Sheet Author
API Scripter
Roll20 is bad for this, because it doesn't have any native support for loops. You can do it with a custom API script, and the ScriptCards script can very likely handle it. Failing that, you need to build a query that explicitly spells out each roll, like this: ?{How Many?| 1,[[1d6]]| 2,[[1d6]][[1d6]]| 3,[[1d6]][[1d6]][[1d6]]| 4,[[1d6]][[1d6]][[1d6]][[1d6]]| 5,[[1d6]][[1d6]][[1d6]][[1d6]][[1d6]]} adding extra lines for the maximum number of dice you want.
1622724204
David M.
Pro
API Scripter
If you are interested in scriptcards  here's an example utilizing a simple loop: !scriptcards {{ --=numRolls|?{How many Rolls?|4} --=dieType|?{What die type?|d4,4|d6,6|d8,8|d10,10|d12,12|d20,20} --#title|Multiple Roll Example --#leftsub|Rolling [$numRolls]d[$dieType] --=i|0 --:Loop| --=i|[$i] + 1 --=thisRoll|1d[$dieType] --+Roll [$i]|[$thisRoll] --?[$i.Total] -lt [$numRolls.Total]|Loop }}
ㄴ@David M. Thx!!!!! This is exactly what i wanted!