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

Exploding 6's

How do I make this macro explode 6s? &{template:default} {{name=Roll}} {{Hits=[[?{Dicepool|1}d6>5k?{Limit|9000}s]]}} {{Limit=?{Limit|99}}} {{Note =?{Note|Stuph}}}
1481903677
Tetsuo
Forum Champion
To explode dice, just use a ! like this: 1d6! This will have it explode on a roll of 6. If you want to change the explode point, use a > or <. So, 1d6!>4 would explode on a 4 or greater. See the  exploding dice reference for more info. &{template:default} {{name=Roll}} {{Hits=[[?{Dicepool|1}d6!]] }}
1481904874

Edited 1481904978
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
Also, your ?{Limit|9000} and ?{Limit|99} queries will resolve to the same input, not sure if you meant for that to happen or not. And, are you trying to use the keep syntax with this? As you have it it will keep successes only, did you intend for that to happen? or did you want it to keep the highest 5 or something?
I didn't write it, I just used one that was sent to me :)
Scott C. said: Also, your ?{Limit|9000} and ?{Limit|99} queries will resolve to the same input, not sure if you meant for that to happen or not. And, are you trying to use the keep syntax with this? As you have it it will keep successes only, did you intend for that to happen? or did you want it to keep the highest 5 or something? Its for Shadowrun 5th. So only 5s and 6s count, and in this case 6s explode.
1482183556

Edited 1482183574
Using: &{template:default} {{name=Roll}} {{Hits=[[?{Dicepool|1}d6!>5k?{Limit|99}s]]}} {{Note =?{Note|Stuph}}} I end up with something like 50 hits on average. While that would be awesome, I think I did something wrong here.
Zed said: !>5 As Franky H. pointed out, this means 'explode on a 5 or greater'. You'll want to move the exclamation mark elsewhere.
1482184596
Tetsuo
Forum Champion
thats because the d6!>5 is having your rolls explode on a 5. If only 6s explode and you want to keep the highest ?{limit}, AND have it register as a success on a 5, you would do {?{Dicepool|1}d6!k?{limit?|99}}>5
In case it helps, I use Advanced Roll Queries like this for my Shadowrun macros: ?{Push the Limit|   No,  [[ (?{Dice Pool|1})d6>5cs>5sk?{Limit|2} ]] |   Yes, [[ (?{DP + Edge|2})d6>5cs>5s! ]] }
So I'm trying to explode d6's but I only want to explode on the first set of 6:s not the extra die cast. so 3d6! could result in 6+4+3, +6. But in Roll20 it does 6+4+3, +6,+3 instead, exploding the "extra die" as well.
1482427839

Edited 1482443364
Mårten W. said: So I'm trying to explode d6's but I only want to explode on the first set of 6:s not the extra die cast. One way to place a limit on explosions like that is to use a Keep / Drop Function : {d6!, d6!, d6!, 12+0d0, 12+0d0, 12+0d0}kl3 Variable dice pools can also be handled using an Advanced Roll Query : [[ ?{Dice Pool| 1, {d6!, 12+0d0}kl1 | 2, {d6!, d6!, 12+0d0, 12+0d0}kl2 | 3, {d6!, d6!, d6!, 12+0d0, 12+0d0, 12+0d0}kl3 | 4, {d6!, d6!, d6!, d6!, 12+0d0, 12+0d0, 12+0d0, 12+0d0}kl4 | 5, {d6!, d6!, d6!, d6!, d6!, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0}kl5 | 6, {d6!, d6!, d6!, d6!, d6!, d6!, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0}kl6 | 7, {d6!, d6!, d6!, d6!, d6!, d6!, d6!, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0}kl7 | 8, {d6!, d6!, d6!, d6!, d6!, d6!, d6!, d6!, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0}kl8 | 9, {d6!, d6!, d6!, d6!, d6!, d6!, d6!, d6!, d6!, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0}kl9 | 10, {d6!, d6!, d6!, d6!, d6!, d6!, d6!, d6!, d6!, d6!, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0}kl10 | 11, {d6!, d6!, d6!, d6!, d6!, d6!, d6!, d6!, d6!, d6!, d6!, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0}kl11 | 12, {d6!, d6!, d6!, d6!, d6!, d6!, d6!, d6!, d6!, d6!, d6!, d6!, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0, 12+0d0}kl12 | etc. } ]]
Wow, thanks for the quick answer but that was WAY over my head :)
As is natural when you jump into the deep end! :) If there's anything you think the documentation can help explain better, please do let me know.
So I'm trying to use the Dice Pool above, and it works most of the time, but if I change say the text from "Dice Pools" to something else in the Roll20 editor it seems to break. So when I run it I get asked to enter something (Input value) but it's already filled in with "1, {d6!, 12+0d0" It seems like Roll20 breaks it by itself when I load different pages.
If I copy paste the dicepool above and change the text again to what I want it will work for a while... really strange. I've run Diff on the entries in Notepad++ but there is no difference that I can see.
From Roll Query Troubleshooting : At this time, reopening a Macro saved under the Collections tab of the Sidebar causes HTML entities within to be reverted; if the Macro is then saved, so are those reversions. This behaviour is not present within Abilities . Do you think this might be the issue you're experiencing?
Could be, but there is no visible difference in the text.
I recommend saving macros with HTML entities as Abilities to avoid this issue.