I'd like to find the probabilities of a mechanic inspired mainly by Ironsworn.
The basic premise is pretty simple and I have a working anydice program that gives me the right results but there's an additional rule I can't figure out how to implement.
The mechanic is this
You roll xd6 and take the highest result
You compare your highest result to two "challenge" d6s that act as target numbers to beat, if you roll over that's a success, if you roll under or equal that's a failure (this generates an output of 0, 1, or 2 successes)
(the extra rule I don't know how to program) In the event of a tie if your highest result has more matches than ties against the challenge dice you generate that many successes.
Examples
6, 6 vs 6, 6=0 success
6, 6, 6 vs 6, 6=1 success
6, 6, 6, 6 vs 6, 6=2 successes
6, 6 vs 1, 6=2 successes (6 beats 1 and the 2 6's beats 1 challenge 6)
As a possible add-on I was considering using the same mechanic basically for a crit system, where having the highest dice match generates extra successes (after they're used to break ties first). This would basically be adding one more output for a roll of 3+ if anyone would like to help with that.