Dice Expressions: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
Line 5: Line 5:
In the tables below, the variable ''Y'' is described as the "number of sides" on the dice being rolled; in reality the dice roller is picking a random number between 1 and ''Y''. The end result is the same.  
In the tables below, the variable ''Y'' is described as the "number of sides" on the dice being rolled; in reality the dice roller is picking a random number between 1 and ''Y''. The end result is the same.  


Additionally, in the expressions, capital letters signify an argument you must provide, while the lower-case letters are a fixed part of the dice expression. For example, in the expression '''XdYsS''', you replace ''X'', ''Y'', and ''T'' with numbers to indicate the number of dice, how many sides the dice have, and what number indicates a success. The lower case "d" and "s" are left alone.  
Additionally, in the expressions, capital letters signify an argument you must provide, while the lower-case letters are a fixed part of the dice expression. For example, in the expression '''XdYsS''', you replace ''X'', ''Y'', and ''T'' with numbers to indicate the number of dice, how many sides the dice have, and what number indicates a success, respectively. The lower case "d" and "s" are left alone.  


{| class="wikitable" border="1" style="border-collapse:collapse;"
{| class="wikitable" border="1" style="border-collapse:collapse;"

Revision as of 14:24, 3 February 2009

MapTool's chat window and macro system supports several of the most common dice expressions based on the formats XdY and dY.

General Dice Expressions

In the tables below, the variable Y is described as the "number of sides" on the dice being rolled; in reality the dice roller is picking a random number between 1 and Y. The end result is the same.

Additionally, in the expressions, capital letters signify an argument you must provide, while the lower-case letters are a fixed part of the dice expression. For example, in the expression XdYsS, you replace X, Y, and T with numbers to indicate the number of dice, how many sides the dice have, and what number indicates a success, respectively. The lower case "d" and "s" are left alone.

Expression Function Description Example
XdY Roll X dice with Y sides each. If X is not included, roll 1 die with Y sides and present the sum of all rolls in chat /roll 1d20 rolls one twenty-sided die and presents the total roll in chat
XdYdN drop Roll X dice with Y sides each, and drop the lowest N dice afterwards /roll 4d6d1 rolls four six-sided dice, drops the lowest roll, and presents the total in the chat window
XdYkN keep Roll X dice with Y sides each, and keep the highest N dice afterwards /roll 4d6k3 rolls four six-sided dice, keeps the highest 3 rolls, and presents the total in the chat window
XdYrL reroll Roll X dice with Y sides each, rerolling any results lower than L /roll 3d8r2 rolls three eight-sided dice, rerolls any dice that are lower than 3, and then sums and presents the total in chat
XdYsT success Roll X dice with Y sides each, and count any rolls that meet or exceed T (the "target number") /roll 4d6s4 rolls four six-sided dice, and counts any individual roll that exceeds four, presenting the number of "successes" in chat
XdYe explode Roll X dice with Y sides each, and reroll any dice that roll Y, add the new roll to the total /roll 2d6e rolls two six-sided dice, and if either rolls a 6, it is rerolled and added to the total (this continues until neither die rolls a 6).
XdYesT exploding success As success rolls, above, but the individual dice can "explode" (i.e., they are rerolled if they roll their maximum value) /roll 4d6es8 will roll 4 six-sided dice, explode any that roll their maximum, and then total the rolls that exceed 8
XdYo open Roll X dice with Y sides each, and explode any dice that roll Y, then return the value of all rolls, as well as the highest roll /roll 5d6o rolls 5 six-sided dice, and explodes any that roll 6

Game-Specific Dice Expressions

Expression Game System Function Description
XdYh Hero Stun Dice Rolls X dice with Y sides each, keeping track of the results for hero rolls for body damage. Where a roll of 1 = 0 body damage, a roll of Y = 2 body damage and a roll in between these two values = 1 body damage.
XdYb Hero Body Dice Returns the body damage from the last XdYb Hero Stun Dice roll as long as X and Y

matches the Stun Dice roll

Xdf Fudge Fudge Dice Rolls X Fudge dice (which return -1, 0, or 1), summing the dice and returning the sum
Xdu Ubiquity Ubiquity Dice Rolls X Ubiquity dice, which return 0 or 1, summing the result and returning that value to chat
Xsr4egT Shadowrun 4th Ed. Shadowrun Exploding Roll Rolls X six-sided dice, exploding their value, and comparing the results to T to count successes. Additionally, the "g" lets the roll count glitches
Xsr4g4 Shadowrun 4th Ed. Shadowrun Standard Roll As above, but does not explode the dice rolls.