Difference between revisions of "Dice/PbP/RollPost/AddRoll (String)"
From DiceRoller Documentation
(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=...") |
|||
Line 19: | Line 19: | ||
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|Pristine]] or [[../Stored|Stored]], it will be evaluated anew via [[Dice/Roller/Roll|Roller.Roll]] using [[Dice/Roller/DefaultConfig|Roller.DefaultConfig]]. | 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|Pristine]] or [[../Stored|Stored]], it will be evaluated anew via [[Dice/Roller/Roll|Roller.Roll]] using [[Dice/Roller/DefaultConfig|Roller.DefaultConfig]]. | ||
− | See [[../AddRoll (String, RollerConfig|AddRoll(String, RollerConfig)]] for more details on how the previous value matching is performed. | + | See [[../AddRoll (String, RollerConfig)|AddRoll(String, RollerConfig)]] for more details on how the previous value matching is performed. |
Latest revision as of 23:12, 27 April 2017
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.