explodingSuccess(times, sides, target)
times- The number of times to roll the dice.
sides- The number of sides the dice possess.
target- The number that a dice needs to be equal to or higher to be considered a success(added to the count returned).
1if rolled higher than
[t: explodingSuccess(1, 20, 30)]
1 is only returned if the twenty-sided dice rolls
20 and then is rerolled(exploded) with a result equal to or higher than
Roll five ten-sided dice, and returns the number of dice that rolled higher than twenty, using variables.
[h: DiceTimes = 5] [h: DiceSides = 10] [h: DiceTarget = 20] [t: explodingSuccess(DiceTimes, DiceSides, DiceTarget)]