< Dice‎ | PbP‎ | RollPost
Revision as of 23:08, 27 April 2017 by Skizzerz (talk | contribs) (Created page with "{{APIdoc|RollPost.AddRoll Method (String)}} Adds a new roll to the post using the DefaultConfig if the roll needs to be evaluated. {{ns}} == Syntax == <syntaxhighlight lang=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

RollPost.AddRoll Method (String)

From DiceRoller Documentation

Adds a new roll to the post using the DefaultConfig if the roll needs to be evaluated.

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

Syntax

public void AddRoll(
    string diceExpr
)

Parameters

diceExpr
Type: System.String
The dice expression to add, will be evaluated then added to the end of Current.

Remarks

This will first attempt to use a previously evaluated version of this roll, if possible. If the roll does not matched the current position of Pristine or Stored, it will be evaluated anew via Roller.Roll using Roller.DefaultConfig.

See AddRoll(String, RollerConfig) for more details on how the previous value matching is performed.