< Dice
Revision as of 16:33, 12 April 2017 by Skizzerz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ResultType Enumeration

From DiceRoller Documentation

Indicates whether a RollResult's Value represents the total of the roll or the number of successes.

  • Namespace: Dice
  • Assembly: DiceRoller (in DiceRoller.dll)

Syntax

public enum ResultType

Members

Member name Description
Total The Value represents the sum of all dice rolled.
Successes The Value represents the number of successes.

Remarks

In the event that a dice expression contains a mix of normal rolls and rolls which specify success conditions, the result will be RollResult.Total. For example, if the expression 1d20+2d10>6 was rolled, and the d20 came up as 9, and the d10s came up as 4 and 8, the resultant Value would be 10 (9 plus 1 success).