AnyDice: Savage World but with an Exploding dice instead of 4

anydicesavage-worlds

So I'm exploring some mechanics and I want to use Exploding Rolls, similar to Savage World, but I'm curious about the statistics of also having an exploding difficulty.

For example:

I roll 1d6 and 1d8, both can explode but I keep the highest result
vs
1d4 for difficulty (this dice would raise to fit more difficult situations, like 1d6, 1d8 etc).

I'm having trouble to come up with a system so I can compare different skill dices and difficulty dices.

Best Answer

So far...

You know the code for the function without exploding dice.

Part 3 explode

You need to tell your code that the dice do explode, which is part of the explode function. with proper brackets in the comparison, so for example [highest of [explode 1d4] and [explode 1d8]] to have skill dice explode or [explode 1d6] to have a single d6 explode.

Adapted code

SKILL_A: 1d4
SKILL_B: 1d8
DIFF: 1d6

function: sign of N:n {
  if N < 0 { result: -1 }
  if N > 0 { result: 1 }
  result: 0
}

output [sign of [highest of SKILL_A and SKILL_B] - [explode DIFF]] named "1 = higher, 0 = equal, -1 = lower"

or with comparison: here

Related Topic