Skip to main content
7 events
when toggle format what by license comment
Sep 12, 2022 at 15:35 comment added Ilmari Karonen @From: Yes, 1d6:5 here is equivalent to {1..6}:5, i.e. the numbers from 1 to 6 repeated 5 times. Also, 2d6 inside a sequence definition is equivalent to {2..12}, which may not be what you expect. Alas, AnyDice doesn't actually let you put dice inside sequences, and its behavior if you try is kind of counterintuitive and rarely useful. Except maybe for just this particular case, although I'd still argue that Nd{{1..6}:5, 6:6} is a clearer way to write the same thing.
Sep 11, 2022 at 20:58 comment added Someone_Evil @Andy Unless there's some complexity I'm missing, bonus dice could just be treated as an additional d6 which isn't rerolled so you can handle them as: output [count 6 in Nd{1d6:5, 6:6}]+[count 6 in Bd6]
Sep 11, 2022 at 20:55 vote accept Andy
Sep 11, 2022 at 20:53 comment added Andy Thanks! I updated the function to deal with the bonus dice, my only issue now is it can't calculare over above N=7 as it takes >5 sec to calculate! B:1 N:7 function: count T:n in A:s with reroll { result: [count T in A] + [count T in (#A-[count T in A] + B)d6] } output [count 6 in Nd6 with reroll] How can I edit the 2nd approach to deal with bonus 1, 2 or 3 bonus dice (extra D6 added to the pool of dice being rerolled that were not already a 6)?
Sep 11, 2022 at 19:45 comment added From Ahh, the 1d6 inside the dice span generates the full 1-6 range, it doesn't roll once. That explains why my "solution" didn't give sane output. Nice!
Sep 11, 2022 at 18:43 comment added Ilmari Karonen Tip: With the "independent" dice method you can still let AnyDice reroll one die for you and save the result as a custom die that you can roll N times. And if you want to optimize it even further for uses like this, where you really only have two outcomes (success and failure) and you can reroll failures once, you can first let AnyDice give you a custom die with just those two sides and then reroll it (and then roll the rerolled success die N times).
Sep 11, 2022 at 18:26 history answered Someone_Evil CC BY-SA 4.0