General Discussion Undecided where to post - do it here. |
|
![]() |
#1 |
|
Spent about an hour rigging this up for Whatah. As it turns out, we can't even use it because we need the random numbers to remain constant for all users. Planning on revising it with a much trickier method
![]() Figured someone might be interested in this. Critique away! [dice=5]20[/dice] Output: [dice=5]20[/dice] Hook Location: bbcode_parse_start Code: Code
if (!function_exists('handle_dicetag')) { srand((double) microtime() * 1000000); function handle_dicetag(&$parser, $param, $option = '') { $numSides = 6; $numDice = 1; $htmlOut = ' |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|