roll.result

From RPTools Wiki
Revision as of 02:47, 23 December 2008 by Cclouser (talk | contribs) (New page: 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== <source lan...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.