getRolled

From RPTools Wiki
Revision as of 18:17, 20 April 2019 by Phergus (talk | contribs) (Created page with "{{MacroFunction |name=getRolled |trusted=false |version=1.5.2 |description= Returns an array of all the raw, i.e. unmodified, dice rolls that have occurred within the current...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

getRolled() Function

Introduced in version 1.5.2
Returns an array of all the raw, i.e. unmodified, dice rolls that have occurred within the current macro context.

Usage

getRolled()

Parameters

  • none - Takes no parameters.

Example

Roll some dice and observe the unmodified rolls.
Roll 1d10: [e: 1D10+2]<br>
Get Rolled: [r: getRolled()]<br>
Roll 3d6 minimum 2: [e: 3D6L2]<br>
Get Rolled: [r: getRolled()]

Output:

Roll 1d10: « 1D10+2 = 9 + 2 = 11 »
Get Rolled: [9]
Roll 3d6 minimum 2: « 3D6L2 = 13 »
Get Rolled: [9,6,5,1]

See Also