KenWare Dice Server



Introduction | Information
Dice Roller by Form | Dice Roller by Message
Britannia Battle Resolver

Introduction

This web page is a front-end to an on-line dice roll server.  Generated dice rolls may be displayed on the web page and/or sent in an e-mail message to a number of e-mail addresses supplied by you.

In addition to providing generic dice rolling forms for use with the dice rolling server, this site will provide battle calculators for a variety of games.
 

Technical Details

The dice rolls are generated using CGI, Perl and the Math::Random Perl module.  To support the re-entrant nature of CGI processes, the seeds of the random number generator are saved and retrieved in between successive iterations.
 

Dice Roll Information

The dice roll server requires the following minimal information: If an e-mail message is to be sent out to other players of a PBEM game, the following information should be supplied:

Generic Forms

Two forms are available for generic dice rolling.  The first form allows simple data entry for the above eight pieces of information.  The second form is a message-based system for providing the above information.  Each line of the message contains a code, whitespace and data following the whitespace.  The code defines the data contained in the rest of the line.  The codes are:
 
Code Data Example
#S number of sides per die #S 6
#D number of dice in a roll #D 2
#M +/- modifiers to each roll #M +1
#R number of total rolls in request #R 5
#L number of rolls display line #L 3
#P e-mail address list (multiple lists can be specified) #P who@whatever.com,you.too@there.net
#P who.else@wherever.com
#T subject of e-mail message #T Battle of Hastings, 1066
#C comments to explain the purpose and possible results of the rolls (one per line of comment) #C 3 armies, 2 cavalry w/leader attacking.
#C Need 9+ and 6+ to kill.
#X coded string describing a dice roll request (multiple requests can be specified), formatted as:
(#R)x(#D)d(#S)(#M)/(#L)
#X 5x2d6+1/3
(alternate way of expressing above)

Users of the e-mail dice rolling system at dice@pbem.com can see the similarities.  Note, however, the addition of the #X code.  This code allows a streamlined method of entering dice roll requests.  Note also that multiple #X requests can be contained in a single message.  This capability would allow simultaneous random event generation.

Currently, all codes are two characters in size.  This will not necessarily be the case in the future.  To allow for the creation of custom battle resolvers, additional codes will be added to the messaging system to provide unit and CRT (Combat Results Table) information.  The calculators will then use the generic dice rolling subsystem for results and the resolvers will then interpret the results.