ubiquity: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page ubiquity to Ubiquity without leaving a redirect: Converting page title to first-letter uppercase)
m (Conversion script moved page Ubiquity to ubiquity: Converting page titles to lowercase)
(No difference)

Revision as of 23:18, 9 February 2023

ubiquity() Function

Generates random numbers to emulate dice rolls; returns the total of a special Ubiquity dice roll. When these dice are rolled, the result is 0 or 1, this function then sums up all of the dice rolled and returns that sum.

Usage

ubiquity(times)
u(times)

Parameters

  • times - The number of times to roll the dice.

Examples

Roll ten special Ubiquity dice.
[t: ubiquity(10)]

Returns a number that is between 0 and 10.

Roll five special Ubiquity dice, using variables.

[h: DiceTimes = 5]
[t: ubiquity(DiceTimes)]
Returns a number than is between 0 and 5.

See Also

For another method of rolling dice, see Dice Expressions.