User Tools

Site Tools


dice_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dice_server [2008/09/16 18:57] jimsdice_server [2017/05/27 18:56] (current) – external edit 127.0.0.1
Line 14: Line 14:
 When the dice server receives this message, it will roll the dice and send the  When the dice server receives this message, it will roll the dice and send the 
 results to the Roller, as well as any person CC'd on the initial message. results to the Roller, as well as any person CC'd on the initial message.
 +
 +The "V2" mailing list uses the dice roller for //all// messages, so no "CC"
 +tricks are necessary.  Simply send your dice request to the mailing list and
 +the results will be seen by all on the list.
  
 === Syntax === === Syntax ===
 +
 +//Note: In the syntax below, square brackets surround optional parameters.//
  
 Messages sent to the dice server may contain any number of lines as follows: Messages sent to the dice server may contain any number of lines as follows:
  
-  * [ whitespace ] "!roll" whitespace //dice-expression(s)//+  * "!roll" //**dice-expression**//
  
-Where //dice-expression// is as follows:+Where //**dice-expression**// is as follows:
  
-  * [ //repeat-count// "x" ] [ //number-of-dice// ] "d" //dice-size// [ ('+'/'-') //dice-adder// ] [ "x" //repeat-count// ]+  * [ //**repeat-count**// "x" ] [ //**number-of-dice**// ] [ "(" //**top-dice**// ")" ] "d" //**dice-size**// [ ('+'/'-') //**dice-adder**// ] [ "x" //**repeat-count**// ] 
 + 
 +  * //**repeat-count**// = Number of times to repeat the roll (May be in front or after the main dice expression. 
 +  * //**number-of-dice**// = The number of dice to roll (1..1000) 
 +  * //**top-dice**// = The number of **high** dice to count.  (Example: To roll 4d6 and keep the top 3, use "4(3)d6"). 
 +  * //**dice-size**// = The size of each die.  (Need not be a normal number.  Feel free to roll 13-sided dice, if you want). 
 +  * //**dice-adder**// = The amount to add (or subtract) from the total.
  
 Examples: Examples:
Line 35: Line 47:
   * !roll d20x5   * !roll d20x5
      * Roll a single d20 five times      * Roll a single d20 five times
-  * !roll 6x3d6 +  * !roll 6x4(3)d6 
-     * Roll three six-sided dice six times +     * Roll four six-sided dice, keeping only the top three -- and do this six times
- +
-If no //dice-expression// exists, the dice server will roll a single d20.+
  
 === Caveats === === Caveats ===
Line 52: Line 62:
 Each recipient will always receive TWO copies of each message -- one from the  Each recipient will always receive TWO copies of each message -- one from the 
 original sender, and a second from the dice server.  The exception to this is  original sender, and a second from the dice server.  The exception to this is 
-the "V2" mailing list.  Messages sent to the mailing list are run through the +the "V2" mailing list -- as explained earlier.
-dice roller and the response is sent //ONLY// to the mailing list.+
  
 [[start|Back to start page]] [[start|Back to start page]]
  
dice_server.1221609452.txt.gz · Last modified: 2017/05/27 18:41 (external edit)