ROLZ

Multiple Rolls & Other Commands

Explode and add up
To roll a number of dice, and re-roll every die that comes up with the maximum value, add everything together, use the I code:
  • Example:
Multiple rolls at once
To roll for multiple things (e.g. an attack and a damage roll), you can chain together dice codes by semicolons.
  • Example:
A number of rolls
If you want to repeat the same roll for a number of times, use the repeat command. If you also want the sum of the rolls, use sum instead of repeat.
  • Examples: or:
The median of a series
  • Example:
Rolling until a value is met
  • rolls a d20 until the result is 1
  • rolls a d20 until the result is at least 10
  • rolls a d20 until the result is 10 or lower
Please note that rolls will stop trying after 1000 attempts.
Comments after the roll
You can add comments to your roll by appending a pound sign # followed by some text to your code, like this:
Custom attributes
Another way to define custom rules for a single roll command is using attributes. The following attributes are currently supported:
  • reroll : ignore one or more results and roll again
  • reroll multiple : ignore one or more results and roll again, adding 3 dice
  • reroll X times : ignore one or more results and roll each again up to X times with rmax=X
  • fractions : round to whole numbers , round down to whole numbers , round up to whole numbers
  • round up : round up all results below this number
  • explode : specify one or more results that cause the die to be rolled again and the result added up
  • explode on equal digits : you can make a die result explode if all digits are the same, using the digits code:
  • explode with rx and/or rmax : you can combine explode with rx or rmax in the same way as the reroll attribute, for example
  • to cause the max result of the die to explode without having to specify what it is, use the explode=max shorthand
  • count : count the occurrences of specific die results
  • conditionally multiply entire roll: specify that the outcome of this roll be multiplied by a factor if one or more dice results come up, e.g., null entire result if one d6 comes up 1:
  • conditional roll : specify that another roll be performed, and the result added, if a certain result comes up, e.g. roll an additional d8+1 for any d6 that comes up 6:
  • conditionally multiply next roll : specify that the outcome of the following roll be multiplied by a factor if one or more dice results come up. Use this with the embedded roll feature where multiple rolls can be combined into one chat line. (e.g., apply critical effect in the D20 system:
  • conditionally append to next roll : If the character after the x is a math operator (+ - / *) the code following it will be appended to the next dice roll if the condition is triggered. For example:
  • conditionally cancel further rolls : you can cancel rolls following in the same line of text (or within the same forum post) if certain criteria in the previous roll have been met. For example, the following cancels the damage roll if the D20 came up 1 to 10: .
You can combine attributes with another, and also use macros (see below) to invoke them. It doesn't matter if an attribute comes before or after the actual dice code, as long as they are separated by a space.
Macros
You can define macros to automate repetitive die rolls or often-used number constants (such as your attack bonus).
  • List your macros:
  • Define a macro:
  • Use a macro called " " or even " "
  • Delete a macro:
Note that if you're logged in with a registered nickname and password, your current macros are saved automatically with your nickname.
Built-in Macros
The following macros are built in to Rolz:
  • !_N where "N" is the number of the die roll performed starting with 1. For example if you have the dice code "#d20;d8+1" you can refer to the "d20" part by calling "!_1" and the "d8+1" result by "!_2"
    Example:
  • "!_total" refers to the sum of the rolls made so far. For example if you have a dice code triggering several rolls like "#d10;d20;d12+3" you can insert the sum of all three rolls afterward with "#d10;d20;d12+3;!_total"
    Example: