Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBPro] Dice Roller based on dice formula (E.g. 2d6+1)

Author
Message
jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 25th Jul 2004 08:40
This is a routine that will generate a number based on the dice rolling formula where:

xdy{+/-z}

where x is the number of dice, y is the sides on the dice and +z or -z is a modifier for the final dice roll. E.g.

2d8+1

will roll 2 8 sided dice and add 1 to the result

This code can be cut and pasted directly into DBPro as it includes an example, and it requires 5.4+



Jas

----
"What is this talk of 'release'? Klingons do not'release' software. It escapes leaving a bloody trail of developers and quality assurance people in its wake!"

Login to post a reply

Server time is: 2024-11-23 19:53:17
Your offset time is: 2024-11-23 19:53:17