Diceroller Applet

by Kam-Hung Soh (kamhung dot soh at gmail dot com) 2007/07/28 15:34:41

Index Copyright About Blog

Specify each dice combination using nDf+/-m notation, where n is the number of dice, f is the number of faces on each die and m is a modifier to add or subtract to the result. Lock and unlock any dice combination and result by selecting the checkbox on that row.

You need the Java 1.4.2 (or later) plug-in to run this applet. You can set the default values of each row using the param tag. The applet takes three parameters for each row, r, from 0 to 9:

lock.r
Boolean parameter. If true, then the row is locked.
combination.r
String parameter. Use nDf+/-m notation to specify the type of dice to roll.
value.r
Integer parameter. Define the default result value.

Look at the source for this page to see how this is done.

You can download Dice Roller JAR archive and run it with java -jar DiceRoller.jar.

Index Copyright About Blog