roll.result

From RPTools Wiki
Revision as of 13:49, 25 March 2009 by Verisimilar (talk | contribs) (Added to Special Variable category.)
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.

Related Pages