I am not much of a programmer. While I have figured out how to do basic things with anydice, I am having trouble figuring out the least probability of successes needed for a difficulty number from 2-10 for 1 to 15 dice using D10s.
The system basics are:
- It uses a D10 dice pool system
- Your success check is based on your attribute score
- Your skill determines the number of dice you get to roll
- If a 10 is rolled it counts as 2 successes.
I need a code that determines the least number of successes needed at any difficulty of 2-10 using between 1d10 to 15d10 dice. (Any time a 10 is rolled it would count as 2 successes).
I saw the code below for World of Darkness. It almost works for what I want, but instead of exploding dice on a D10 score of 10, I need the 10 to count as 2 successes. If anyone can help me modify the code to achieve that output it would be great.
function: nwod R:n again N:n {
if N >= R { result: 1 + [nwod R again d10] }
result: N >= 8
}
NWOD: [nwod 10 again d10]
loop N over {1..10} {
output [lowest of 10 and NdNWOD] named "[N]d"
}