PDA

View Full Version : Dice Hack


[D]Vincent
10-13-2002, 01:21 AM
Can anyone create a dice hack that let's a user roll dice when they post. And then it randomly generates a number from the dice sides and number of dice rolled? Basically like the dice on AIM Chatrooms. This would make my RPG I'm making for my forums much easier.

[D]Vincent
10-14-2002, 03:43 PM
Bump :P

Graphics
10-14-2002, 03:47 PM
It's a cool idea. But I couldn't code it for you... :(

Walab
11-06-2003, 02:02 PM
Bump. Not as hard as it seems, only a matter of generating random numbers.

assassingod
11-06-2003, 02:07 PM
Bump. Not as hard as it seems, only a matter of generating random numbers.
This post is over a year old, best not to bump old threads but make new ones instead!

Sylvus
11-06-2003, 05:39 PM
Well I did a search for all Dice Rollers and Random Rollers and every single topic has 0 replies.

You know how it is when someone mentions RPG around here so making a new Random Dice post will no doubt end up like all the rest. At least this one has posts in it.

Anyhow, you can do this to generate random numbers.

For d4

$d4=rand(1,4);

For d6

$d6=rand(1,6);

Create your own vb codes for each dice. Ie ([d4]), ([d6]) and whenever that vb code is used in a thread, have it use the specific random code.

That's the easy part. The difficult part, which I have not figured out yet, is to remove the EDIT function from anyone who uses a random dice roller, or else they can just go back and edit the number to what they want, which defeats the whole purpose of doing this.

Syl...

Lesane
11-06-2003, 05:50 PM
Use sessions for that