Difference between revisions of "Dice/ResultType"

From DiceRoller Documentation
(Created page with "{{APIdoc|ResultType Enumeration}} Indicates whether a RollResult's Value represents the total of the roll or the number of successes. {{ns}} == Syn...")
 
 
Line 19: Line 19:
  
 
== Remarks ==
 
== Remarks ==
In the event that a dice expression contains a mix of normal rolls and rolls which specify success conditions, the result will be {{cs|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).
+
In the event that a dice expression contains a mix of normal rolls and rolls which specify success conditions, the result will be {{cs|RollResult.Total}}. For example, if the expression {{c|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).

Latest revision as of 16:33, 12 April 2017

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).