Got dice?


log in or register to remove this ad

hong said:
Morrus, I wouldn't mind having a look at the random number generation code.
You can have a look at everything I used. Basically, it was a single page of instructions on code changes to make. I didn't understand it - just copied and pasted. I've attached the instructions here.
 

Attachments


So if you change align="center" to align = left and add replace most of the bracketed dice stuff with "DiceL" could you have a dice left and a dice right command? And what about if you make a ShortDice without the image, and just put the number itself on the page?

Hell, I've got no idea what I'm saying, but that's doesn't look to hard to screw around with.
 
Last edited:

Morrus said:
You can have a look at everything I used. Basically, it was a single page of instructions on code changes to make. I didn't understand it - just copied and pasted. I've attached the instructions here.
Suggestion: replace rand() in

Code:
                        	$dicedetail['data'][] = rand(1,$faces);

with mt_rand(). rand() uses the default random number generator provided by the server, and this can have poor statistical properties especially on older systems.

http://www.php.net/manual/en/function.mt-rand.php

Trust me, I'm a statistician.


Hong "no, really" Ooi
 


Sounds easy enough.

Say, don't s'pose anyone would know how to

1) Allow multiple rolls in a post;
2) Show different graphics depending on the die type (I don't mind limiting it to "real" dice instead of anything between 2 and 30 - it would require quite a few dice to be drawn, but I'm sure that could be done).
 



Creamsteak said:
Holy... niceness...
[dice]


you wait patiently after casting your spell.. suddenly you feel strange. as if you are here but not here.

another voice enters your mind.

Hiya....

your find familiar spell has summoned a special form...one of true kindred with your spirit.

a pseudo dragon.
 


Remove ads

Top