Random Die Roller
Need a PHP function for rolling RPG dice? Yeah, I thought you did. INSTRUCTIONS:
Type any die roll in standard RPG notation
such as 2d10, 3d6+30, 2d6-2, 1d10*3, or 2d100/2
SPECIAL OPERATORS:
The h (highest) operator displays the highest rolls in bold/redi.e.: 4d6h3 means \'roll 4 d6s and show me the highest 3\'
The b (burning wheel) operator displays successes (4+) in bold/red
i.e.: 4d6b means \'roll 4 d6s and count the number of successes\'
The o (open-ended) operator keeps rolling and adding on crit success
i.e.: 1d100o means \'roll 1d100 open-ended\'
The f die generates results for FATE/FUDGE dice
i.e.: 4df means \'roll 4 FATE dice\'
You are welcome to download this PHP script and include it within your projects.
Tip Jar
https://paypal.me/AsIfProductions