[RPG] Help Writing an AnyDice Function for a Weird Dice Mechanic

anydicedice

I've thought of a dice mechanic that I'd like to test the numbers for, but it's complicated enough that I don't know how to model it in AnyDice. It's sort of a modified dice pool, where the successes are counted differently than most.

With a skill level of 3, the player rolls 3d6. 2, 3, 4, and 5 all count as one success, 6 counts as 2 successes, and 1 subtracts a success. So a roll of 2, 4, and 5 would be three successes, while a roll of 1, 3, and 6 would be two successes.

I know how to set up AnyDice for a standard dice pool with the counting function, but getting it to subtract ones is a bit beyond me. Is this possible to model in AnyDice? Thanks so much for your time!

Best Answer

output 3d{-1,1,1,1,1,2} named "fiveSixths"

Your mechanic returns 1 success exactly 5/6ths of the time. But it's a lumpy bi-modal distribution on 1 and 3.5 total successes. Make sure to provide free aspirin to players, as calculating results will be entailed.