getNewRolls: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{MacroFunction |name=getNewRolls |trusted=false |version=1.5.2 |description= Returns an array of all the raw, i.e. unmodified, dice rolls for the most recently evaluated dice...") |
No edit summary |
||
Line 36: | Line 36: | ||
|also= | |also= | ||
{{func|clearRolls}} {{func|getRolled}} | |||
}} | }} | ||
[[Category:Dice Function]] | [[Category:Dice Function]] |
Revision as of 19:33, 20 April 2019
getNewRolls() Function
• Introduced in version 1.5.2
Returns an array of all the raw, i.e. unmodified, dice rolls for the most recently evaluated dice expression.
Usage
getNewRolls()
Parameters
none
- Takes no parameters.
Example
Make some dice rolls and show the individual rolls at each step.
Roll 1d10: [e: 1D10+2]<br>
Get New Rolls: [r: getNewRolls()]<br>
Get Rolled: [r: getRolled()]<br>
Roll 3d6 minimum 2: [e: 3D6L2]<br>
Get New Rolls: [r: getNewRolls()]<br>
Get Rolled: [r: getRolled()]
Output:
Roll 1d10: « 1D10+2 = 3 + 2 = 5 »
Get New Rolls: [3]
Get Rolled: [3]
Roll 3d6 minimum 2: « 3D6L2 = 10 »
Get New Rolls: [5,3,1]
Get Rolled: [3,5,3,1]