Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Roll Dice Hack (Great for RPG boards) Details »
Roll Dice Hack (Great for RPG boards)
Mod Version: 1.00, by Madacc (Member) Madacc is offline
Developer Last Online: Jan 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.3.x Rating: (0 vote - 0 average) Installs: 5
Released: 17 Feb 2004 Last Update: Never Downloads: 13
Not Supported Is in Beta Stage  

Here's a hack I made in a few days. Basically, this hack allows you to roll dice in a thread. This will be a great addition to many RPG and D&D style boards, but will also work great for really any board that wants a fun dice rolling system. It is very secure, and this was tested by many of our members. As far as I know, there is no way to cheat this system or rig your roll.

NOTE: Boards that allow HTML in threads will be vunerable to cheaters. This system displays a unique HTML style border that cannot be created in threads when HTML is not allowed. If it is allowed, people could copy the exact look of the post and it would be impossible to tell the difference between a real roll and a rigged roll.

This is my first hack so go easy on me.

This hack should only take about 10 minutes to install. It's pretty quick.

To roll the dice, use the following syntax as your post: /roll <low number> <high number>

Here's an example dice roll:

/roll 200 500

Make sure to include nothing else in your post or you'll get an error. I hope you enjoy this hack!

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	dice.jpg
Views:	356
Size:	124.6 KB
ID:	16833  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Dice Roll for vB3 Kentaurus vBulletin 3.0 Full Releases 51 17 Jun 2006 05:59

Comments
  #2  
Old 17 Feb 2004, 21:05
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Real name: Christian
Hi Madacc,

basicly i am looking for such a Hack. The Problem I see is, that the Dice is not stored in the Database outside the Post-Text so that it can be edited and always shown the same number after rolling once the dice.
Reply With Quote
  #3  
Old 17 Feb 2004, 21:12
Madacc Madacc is offline
 
Join Date: Jul 2002
Real name: Adam
Hoffi,

The way the system works is simple. It stores the number as part of the post after the first roll and disallows editting of your post that contains a rolled dice. I did this to make the system a little easier to work with, therefore not needing to manipulate the database. I assure you the system works exactly how you think it should. You'll see once you install it.
Reply With Quote
  #4  
Old 17 Feb 2004, 23:40
AutomatikStudio's Avatar
AutomatikStudio AutomatikStudio is offline
 
Join Date: Dec 2003
Snap...just noticed this is for vB2 and not vB3. Oh well...
__________________
Mmmm....
Reply With Quote
  #5  
Old 18 Feb 2004, 02:55
Gio Takahashi's Avatar
Gio Takahashi Gio Takahashi is offline
 
Join Date: Jul 2003
Location: Cape Coral
Real name: Don K
Wow o_O So it did. I was so hoping its for vB3.

...Make it for vb3!
Reply With Quote
  #6  
Old 18 Feb 2004, 03:52
Madacc Madacc is offline
 
Join Date: Jul 2002
Real name: Adam
Originally Posted by Gio Takahashi
Wow o_O So it did. I was so hoping its for vB3.

...Make it for vb3!
I'll see what I can do
Reply With Quote
  #7  
Old 18 Feb 2004, 13:39
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Real name: Marco
What is the point?>
Reply With Quote
  #8  
Old 18 Feb 2004, 20:41
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Real name: Christian
OK, but i see its for vB2. Too bad.
The Thing that you disallow editing after Rolling a Dice is a way, but I find this way not perfect. But thats only my opinion.
Reply With Quote
  #9  
Old 19 Feb 2004, 16:17
Sylvus Sylvus is offline
 
Join Date: Apr 2003
Real name: Paul
So if someone wanted to roll an 18, they could simply do a

/roll 18 18

and always get the number they wanted. Or if you required them to roll a six-sided dice, the highest roll wins, anyone could do

/roll 6 6

This is not great for any RPG board.

The proper way to do this is to hard code each roll based on the combination of dice provided for RPG games.

1d4
1d6
1d8
1d10
1d12
1d20
1d100

This stops anyone from generating a high number based on the selection of <low number> <high number> and always getting the result they want.

Example #1:

Player using <low number> <high number>

"Please roll a d20, you require an 18, 19 or 20 to make the jump across the river!"

/roll 18 20

Rolls a 19!

WOW! He made it!

Example #2 (hard coded 1d#):

"Please roll a d20, you require an 18, 19 or 20 to make the jump across the river!"

/roll d20

Rolls a 4.

See my point?

I'd like your permission to modify the code you've provided and make it a real dice roller based on the d4, d6, d8, d10, d12, d20, d100 dice given in true RPG games, not a <low number> <high number> system that can easilly be exploited.

Syl...

Last edited by Sylvus; 19 Feb 2004 at 16:29.
Reply With Quote
  #10  
Old 19 Feb 2004, 17:46
Madacc Madacc is offline
 
Join Date: Jul 2002
Real name: Adam
Originally Posted by Sylvus
So if someone wanted to roll an 18, they could simply do a

/roll 18 18

and always get the number they wanted. Or if you required them to roll a six-sided dice, the highest roll wins, anyone could do

/roll 6 6

This is not great for any RPG board.

The proper way to do this is to hard code each roll based on the combination of dice provided for RPG games.

1d4
1d6
1d8
1d10
1d12
1d20
1d100

This stops anyone from generating a high number based on the selection of <low number> <high number> and always getting the result they want.

Example #1:

Player using <low number> <high number>

"Please roll a d20, you require an 18, 19 or 20 to make the jump across the river!"

/roll 18 20

Rolls a 19!

WOW! He made it!

Example #2 (hard coded 1d#):

"Please roll a d20, you require an 18, 19 or 20 to make the jump across the river!"

/roll d20

Rolls a 4.

See my point?

I'd like your permission to modify the code you've provided and make it a real dice roller based on the d4, d6, d8, d10, d12, d20, d100 dice given in true RPG games, not a <low number> <high number> system that can easilly be exploited.

Syl...
But you see, if the rules stated to roll a d20, and they typed /roll 18 20 the message would state:

-------------------------------------------------------------
** A Magic Die is rolled by Person
** It could have been any number from 18 to 20 and it turned up a 18
-------------------------------------------------------------

And as you can see, he didn't roll correctly. Everyone can see that he rolled 18-20 which is not correct. So, if you state the ground rules, d20 = /roll 1 20 then you can easily catch bad rolls.
Reply With Quote
  #11  
Old 22 Feb 2004, 03:37
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Originally Posted by Madacc
But you see, if the rules stated to roll a d20, and they typed /roll 18 20 the message would state:

-------------------------------------------------------------
** A Magic Die is rolled by Person
** It could have been any number from 18 to 20 and it turned up a 18
-------------------------------------------------------------

And as you can see, he didn't roll correctly. Everyone can see that he rolled 18-20 which is not correct. So, if you state the ground rules, d20 = /roll 1 20 then you can easily catch bad rolls.
Any plans to make this vbb3.0 compatible?

In addition, it would be nice if the dice roll did not have to be on a post by itself. Maybe on its own line, but by itself makes it hard. Afterall, the user has to post his move in the rpg and then make a seperate post with his dice roll? A bit cumbersome.
Reply With Quote
  #12  
Old 26 Feb 2004, 01:35
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Is anybody supporting this hack?
Reply With Quote
  #13  
Old 12 Mar 2004, 02:32
rikku3978 rikku3978 is offline
 
Join Date: Mar 2004
I installed it. It's pretty cool in the forums game board, but it would be spam elsewhere.

I installed it for a seperate game, and it seems popular amoung members.

Pretty cool hack ^-^
Edit: Oh, but if you aren't using html in your board, you have to edit some of the code >_>
Reply With Quote
  #14  
Old 29 Apr 2004, 22:41
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
hello? Any chance of this becoming v3.01 compatible?
Reply With Quote
  #15  
Old 05 May 2004, 20:10
Madacc Madacc is offline
 
Join Date: Jul 2002
Real name: Adam
I'm going to make a vb3 version and release it very soon, just to keep you all updated.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:48.

Layout Options | Width: Wide Color: