roll.result: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(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...)
 
Line 16: Line 16:


The parameter for the tooltip option is evaluated after the roll itself is evaluated, so that ''roll.result'' is available for display.
The parameter for the tooltip option is evaluated after the roll itself is evaluated, so that ''roll.result'' is available for display.
==Related Pages==
* [[Macros:Special_Variables:roll.count|roll.count]]
* [[Macros:Variables:list_of_special_variables|List of Special Variables]]

Revision as of 02:48, 23 December 2008

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