The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Dice Roller Hack [BBCode] Details »» | ||||||||||||||||||||||||||
Dice Roller Hack [BBCode]
RPG Dice is currently a updated version Another updated version Note: Updated package includes only the correct XML. This hack is a port of: Dice Roll for vB3 and permissions was given to port by the following statement. Quote:
The basic bbcode format is: [dice=X]Y[/dice] X - The number of dice to roll, This cannot be larger then 5 currently, this may change later with demand. Y - The number of sides on the dice. so [dice=1]6[/dice] Roll's 1, 6 sided dice. The only limit that I have noticed so far is that dice will not apear correctly when rolled from the create thread editor. I am unsure as to why this is still and am working on this issue. However aside from this it is working as need be. This hack is mainly useful to Game websites that require dice rollers for gambling or roleplaying games. It can add an element of fun to a forum and is adapatable to most dice require situations. If enough demand is displayed I will work on removing the 5 roll limit or making it larger. The current maximum sides one can roll is 30. If you enjoy this hack or have it installed, then please click the install button so that you can remain informed when updates occur. As the original author said, You do not need to ask permission to update or do anything to this hack and can redistribute it if you feel you have made a great contribution to it. If someone does make new dice images and wishes to have them as part of the package then either post here or PM me and I will get them in there with full rights going to the sender for the images. Updates:
This hack was requested from: https://vborg.vbsupport.ru/showthread.php?t=97775 -Eikinskjaldi- Original Screenshots: https://vborg.vbsupport.ru/attachmen...3&d=1078098688 https://vborg.vbsupport.ru/attachmen...4&d=1078098702 Show Your Support
|
Comments |
#162
|
|||
|
|||
Alright, I think I have part of the problem then.
You say above that you did not use RPG dice, but the cclaerhout dice were packaged with RPG Dice in post 117. I believe this is part of my confusion. What exactly did you install and in what order? If it's working for you it should for me; but the frenetic nature of this thread is confusing. I have since removed those test threads. But would welcome your input or testing if you wished. Best, A |
#163
|
|||
|
|||
This is the xml file I use (attached) BUT before installing you'll have to uninstall the other AND open the xml file and change the ***_post and ***_thread in the 'Alter Table' parts at the beginning to have the *'s reflect the prefix all your vb tables have.
Have been using this on my forum since 4/24 and none of my members have had any problems with just typing the code in... of course I have them trained to be happy with what I give them ;p~ |
#164
|
|||
|
|||
Understood.
Thank you for your assistance. Any solution that makes my users type code is not a solution for my users. I was attracted to the system because of the interface and display, not just the function alone. I appreciate your time and effort Eq. You've been kind. I will move my request to the paid forum and work with my existing contractor as well. When I have the solution that's best, I'll share it as open source with the community as I'd suppose the majority of our community owners with games could use this and have it both be functional and pretty. Best, A |
#165
|
|||
|
|||
no problem
perhaps one of the others can help here that use the RPG one. the RPG one didn't fit with what 'we' needed to do.. as we use multiple faces and *usually* only 1 die at a time. I'd love a nifty little button to use, but it's beyond my capabilities and pocket book as the site is a free one. My members and I were just thrilled to have *any* dice hack that actually worked for 3.5.4 |
#166
|
|||
|
|||
Totally with you Eq.
We're free at this time as well (hell we're not open yet) but if I'm ever going to go fee based I need the tools and need to spend the cash. I'll do what I can to get this done and share it off. |
#167
|
|||
|
|||
Quote:
Same here Eq, much love to you for saving me from being lynched by my members. :banana: :banana: :banana: Did you see what I posted about marking posts that are edited "fixed" and having the dice rolls from preview to preview be different everytime? |
#168
|
||||
|
||||
This hack is very similar to something I had done in phpMyChat and wanted to implement on my vBulletin boards to help the Play-by-Post gaming forums. However, I didn't really have a need for displaying cute dice images or limiting myself on the number of rolls or faces. Plus, the dice roller I'm using in my chat uses the standard AdX+B notation where
A = the number of dice to roll (1 if not present) X = the number of faces on the dice B = represents a modifier, usually a + or - but also a divides or multiply. I also need it to do certain things like, only show the sum/result of the roll or show all the die results and the sum of the roll. I also wanted the ability to do open rolls, e.g. if you roll 6, six sided die, you keep rerolling any dice that come up a 6. So, basically, I have concocted three different bbcodes in one product: [roll][/roll] - for rolling and showing only the results or sum [rollv][/rollv] - for rolling and seeing the result of each dice as well as the sum [rollo][/rollo] - for open rolls Each of these takes and optional label for the roll, to be included in the tag after the '=' sign, e.g. [roll=to hit]4d6[/roll] and so forth. It is, however, optional as the actual notation for the roll is displayed before the results in the final posting. So, for example, you can enter rolls like the following: [roll]4d6[/roll] to get the sum of 4 six sided die. [roll]d%[/roll] for a percentage roll (same as 1d100) [roll]4d6b3[/roll] to roll 4 six sided dice and only sum the "best" three results I took the current XML file on this hack, made some big changes, adapted my Perl dice roller class to PHP and I've put together a product to allow dice rolling in this fashion. See the attachment. If you want to see a better description and see some results you can view my forum thread about this enhancement. I don't want to hijack this thread either, so if I need to provide this product via a new thread, someone just let me know. It seemed related enough that I figured I'd add it here first. There is an INSTALL file in the zip attachment which gives an explanation of the included files and how to install them. If anyone has any questions, just shoot me a PM or I'll check this thread for thoughts. This is installed and working on vBulletin 3.5.4 on my forums. |
#169
|
|||
|
|||
okay anyone upgraded to the now available vB 3.6 gold that just became available? will this work with 3.6?
|
#170
|
||||
|
||||
I dont see why it shouldnt, vB3.6 isnt to far off from vB3.5, if anything they'd be simple bugs.
|
#171
|
|||
|
|||
how can i add a button in postbid for ONLY [dice=2]6[/dice] ?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|