PDA

View Full Version : Any Dice Roller that can convert a '1' into the maximum value of the die?

RiTz21
2019-04-07, 12:46 PM
I'm looking for a dice roller that can convert any '1' rolled into the maximum value of the die. This is to allow me to quickly roll for my Rogue which has the Fickle Attack Mythic ability.

For example, if I roll 1d4 and get '1', I need it to result in '4'.
If I roll 10d6, I need ALL the '1's to become '6's...

For my Rogue, I Roll 1d4+11+6d8 when using Sneak Attack, and any '1' on a die needs to become the max value of the die. A Dice Roller that could handle that (preferably Android app, but Windows/Web works too) would be a time saver...

Thanks!

ExLibrisMortis
2019-04-07, 06:35 PM
I'm sure there's some Anydice (https://anydice.com/) script that can do what you're asking for, though I can't make it for you :smalltongue:.

OldTrees1
2019-04-08, 03:35 AM
Perhaps something like this (hardcoded for a d6, shows 3d[your version of a d6])

function: luck N:n {
if N = 1 { result: 6 }
result: N
}

output 3d [luck d6]

Grek
2019-04-08, 04:08 AM
I'm sure there's some Anydice (https://anydice.com/) script that can do what you're asking for, though I can't make it for you :smalltongue:.

In Anydice, you want: output 1d{4, 2..4} + 6d{6, 2..6} + 11. In general, you can use d{list of faces goes here} to produce arbitrary dice; 2..6 is just the syntax for 'every number from 2 to 6'. It'll even accept something silly like 10d{-1, 1d20, 3d6 > 10, 9001}.

RiTz21
2019-04-08, 07:54 AM
Perhaps something like this (hardcoded for a d6, shows 3d[your version of a d6])

function: luck N:n {
if N = 1 { result: 6 }
result: N
}

output 3d [luck d6]

Coool I'll play around with it to see if I can make it work...!

In Anydice, you want: output 1d{4, 2..4} + 6d{6, 2..6} + 11. In general, you can use d{list of faces goes here} to produce arbitrary dice; 2..6 is just the syntax for 'every number from 2 to 6'. It'll even accept something silly like 10d{-1, 1d20, 3d6 > 10, 9001}.
Seems to me that the code you propose denies the '1' value instead of converting '1' to the maximum value! On the contrary, you WANT results of '1' on the die, since they become the Maximum value of the die...!

RiTz21

RiTz21
2019-04-08, 08:30 AM
With your help, I was able to figure it out in AnyDice!

sneak attack damage is: 1d4 + 11 + 6d8 (with any 1's becoming the MAX on the die)

function: luckyfour N:n {
if N < 2 { result: 4 }
result: N
}
function: luckyeight N:n {
if N < 2 { result: 8 }
result: N
}

output 1d [luckyfour d4] + 11 + 6d [luckyeight d8]

Using the N<2 allows me to update it to N < 3 if ever my Mythic Rogue takes Fickle Attack a second time!

RiTz21

The Kool
2019-04-08, 08:50 AM
Coool I'll play around with it to see if I can make it work...!

Seems to me that the code you propose denies the '1' value instead of converting '1' to the maximum value! On the contrary, you WANT results of '1' on the die, since they become the Maximum value of the die...!

RiTz21

Not quite! Rather, if you look closely, she hasn't removed the '1' face. She has overwritten it. You won't be able to know this way whether you rolled a nat 1 or a nat max, but if you don't need to know then it will work fine. As you can see from the d4, the faces are no longer {1, 2, 3, 4} but are now {4, 2, 3, 4}.

RiTz21
2019-04-08, 02:15 PM
Not quite! Rather, if you look closely, she hasn't removed the '1' face. She has overwritten it. You won't be able to know this way whether you rolled a nat 1 or a nat max, but if you don't need to know then it will work fine. As you can see from the d4, the faces are no longer {1, 2, 3, 4} but are now {4, 2, 3, 4}.

Oh I stand corrected then!!
output 1d{4, 2..4} + 11 + 6d{8, 2..8}
does indeed produce the same chart/probability!

THANKS for clearing this up!!
RiTz21