roll.result: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Macros:Special Variables:roll.result moved to roll.result: Moved to main namespace.) |
|
(No difference)
|
Revision as of 13:48, 25 March 2009
The variable roll.result is used in conjunction with the tooltip roll formatting option, and can be used as the parameter for the tooltip formatting option.
Examples
[h:AtkBonus=6]
[h:AbilBonus=4]
Attack Result: [t(roll.result): 1d20+AtkBonus+AbilBonus]
Evaluates 1d20+AtkBonus+AbilBonus, assigns that value to roll.result, and then displays the final result with a tooltip containing the value of roll.result.
A screenshot of the output from the example is shown below. Note the information displayed in the tooltip:
The parameter for the tooltip option is evaluated after the roll itself is evaluated, so that roll.result is available for display.