The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Dice Hack
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.
|
#2
|
||||
|
||||
Bump :P
|
#3
|
||||
|
||||
It's a cool idea. But I couldn't code it for you...
|
#4
|
|||
|
|||
Bump. Not as hard as it seems, only a matter of generating random numbers.
|
#5
|
||||
|
||||
Quote:
|
#6
|
|||
|
|||
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 Code:
$d4=rand(1,4); Code:
$d6=rand(1,6); 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... |
#7
|
||||
|
||||
Use sessions for that
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|