CodeBase - PnP Dice Roller Function
Return to the CodeBase listing
Category: Miscellaneous
Version: 1.0
Information
Uploaded: 25th Jan 2011 09:31
Modified: 25th Jan 2011 13:58
Author: Talairina
Summary
PnP style Dice Roller. Can be used to roll dice with the following styles. 3d6+2, 4d8 or even percentile d100 etc..
Full Description
Name DiceRoll<br /> Parameters<br /> In numdice(Integer), sizedice(Integer), diceonbus(Integer)<br /> Out total <br /> Pre-Condition None<br /> Post-Condition None <br /> Description Rolls 'sizedice' by 'numdice' number of times adding to the previous total<br /> until the correct 'numdice' has been rolled before adding 'dicebonus' to<br /> the 'total' which is then returned by the function.
Comments
No comments yet.