roll.count: Difference between revisions

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


* [[Macros:Variables:list_of_special_variables|List of Special Variables]]
* [[Macros:Branching_and_Looping | Branching and Looping Options ]]
* [[Macros:Branching_and_Looping | Branching and Looping Options ]]
[[Category:Special Variable]]

Revision as of 13:48, 25 March 2009

The special variable roll.count holds the current iteration of the [COUNT(): ] roll option. roll.count begins at 0.

Examples

[COUNT(5, "<br>"): "This is roll " + roll.count]

Outputs:

This is roll 0
This is roll 1
This is roll 2
This is roll 3
This is roll 4

Related Pages