Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Roll Dice Hack (Great for RPG boards) Details »»
Roll Dice Hack (Great for RPG boards)
Version: 1.00, by Madacc Madacc is offline
Developer Last Online: Jan 2011 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 02-16-2004 Last Update: Never Installs: 5
Is in Beta Stage  
No support by the author.

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!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-22-2004, 02:37 AM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
  #13  
Old 02-26-2004, 12:35 AM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is anybody supporting this hack?
Reply With Quote
  #14  
Old 03-12-2004, 01:32 AM
rikku3978 rikku3978 is offline
 
Join Date: Mar 2004
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #15  
Old 04-29-2004, 09:41 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello? Any chance of this becoming v3.01 compatible?
Reply With Quote
  #16  
Old 05-05-2004, 07:10 PM
Madacc Madacc is offline
 
Join Date: Jul 2002
Location: Kansas City, MO
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm going to make a vb3 version and release it very soon, just to keep you all updated.
Reply With Quote
  #17  
Old 05-06-2004, 03:56 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about if inside the post, the user puts a /roll1d6 (or something like that) on a line by itself, the system rolls a dice and makes it a seperate post that cannot be edited. This way the user can continue to edit his/her own post, but not modify the dice roll.

In addition, we might be able to set the diceroll to be posted by the user we choose (Like user: Dicebot). We make the user, and tell the hack the user id we want the rolls to be posted by.

Or, instead of using the "/roll" command, maybe an option on the "Reply to Post / New Post / Edit Post" screens to roll a dice.

Have a field for them to put in the sides of the dice and another field for how many to roll.

In addition, have a comment field so when we see the diceroll in a post, we know what it was rolled for.

If you do this, maybe have an admin option for setting which usergroups can roll dice.

Maybe an option for seperate dicerolls in the same post (with comments).

Cool?
Reply With Quote
  #18  
Old 05-06-2004, 05:17 PM
Madacc Madacc is offline
 
Join Date: Jul 2002
Location: Kansas City, MO
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bitg
How about if inside the post, the user puts a /roll1d6 (or something like that) on a line by itself, the system rolls a dice and makes it a seperate post that cannot be edited. This way the user can continue to edit his/her own post, but not modify the dice roll.

In addition, we might be able to set the diceroll to be posted by the user we choose (Like user: Dicebot). We make the user, and tell the hack the user id we want the rolls to be posted by.


Or, instead of using the "/roll" command, maybe an option on the "Reply to Post / New Post / Edit Post" screens to roll a dice.

Have a field for them to put in the sides of the dice and another field for how many to roll.

In addition, have a comment field so when we see the diceroll in a post, we know what it was rolled for.

If you do this, maybe have an admin option for setting which usergroups can roll dice.

Maybe an option for seperate dicerolls in the same post (with comments).

Cool?
Don't worry, I'm almost done and the system is 100% more solid and fool proof than the previous. It's now an option when you go to post, with text boxes, and it's unedittable (stores the dice roll in the database). Should be done by tonight or tomorrow.
Reply With Quote
  #19  
Old 05-06-2004, 08:22 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sweet! Thank you. What about my ideas? Are any of them going to be in this release?
Reply With Quote
  #20  
Old 05-06-2004, 08:29 PM
Madacc Madacc is offline
 
Join Date: Jul 2002
Location: Kansas City, MO
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Basically the way I'm designing it is like this:

As one of the options when replying or posting a thread is a "Dice Roll" option. Basically there are 2 text boxes, one for the minimum roll and one for the maximum. If you enter them in with your post, you will roll the dice as part of the post, which appears above your post message. When you go to edit your post, just your message appears in your message box and it shows what you rolled where you could originally make your roll (where the option was), that way you can't edit it.

So essentially the vb3 system will feature:

- Uneditable dice rolls
- "Dotted border" style for the dice rolls, therefore as to make it hard to dupe. If you have any other anti-duping method ideas feel free to throw them out there.
- You can make a post WITH your dice roll
- Much more secure and solid
Reply With Quote
  #21  
Old 05-07-2004, 11:53 AM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool. Can't wait.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:17 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04385 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete