roll.result: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Macros:Special Variables:roll.result moved to roll.result: Moved to main namespace.)
m (Added to Special Variable category.)
Line 19: Line 19:
==Related Pages==
==Related Pages==


* [[Macros:Special_Variables:roll.count|roll.count]]
* [[roll.count]]
* [[Macros:Variables:list_of_special_variables|List of Special Variables]]
 
[[Category:Special Variable]]

Revision as of 13:49, 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.

Related Pages