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 |
#22
|
||||
|
||||
Well we can go up to as many as you want, but it will mean changing the dbase field to hold more data because its currently med.
|
#23
|
||||
|
||||
You are missing the .thread table
|
#24
|
|||
|
|||
One of my members mentioned 20. Whether that's a good idea or not from a coding standpoint I don't know. Also, Rukbat, would you be willing to post your dice up to a higher number?
|
#25
|
|||
|
|||
sure
what color? pentagonal or 'square'? and up to what number? |
#26
|
|||
|
|||
this might be a better way to compare
|
#27
|
||||
|
||||
Those pentagonal ones are pretty kick arse. If you decide to make a public release i'll add them to the package with credits to you, because if you ask me the ones it comes with are yuck...
|
#28
|
|||
|
|||
I've made 2 sets (a white set & a blue set) of the pentagonal dice (in gif format) both sets up to 30; as well as a 'blank' white and a 'blank' blue in both gif and png formats so if anyone wants/needs higher face values they can make them (or they can pm me and I will when I have time). I used Tolkein font for the numbers in black.
Both sets are in the attached 'dice.zip' file (at least I hope I zipped it and attached it correctly... I don't do much zipping.. mainly unzipping...heh) |
#29
|
|||
|
|||
i'll work on higher numbers for both those sets later today, and also make a few more colors. will zip and attach when done. guess I'll go up to 100?
maybe put a txt file with the original hack download that they only have to upload the dice set they want to use as well as only uploading the individual gifs for the number of 'faces' they will be using. a thought... to increase the max number of die rolled from 5 to say 9 would the 'mediumtext' attribute still be okay? would the below be coding to change? FROM Code:
preg_match_all("/\[dice=([1-5])\]([0-9]?[0-9]?[0-9])\[\/dice\]/",$post['message'],$diceresult); Code:
preg_match_all("/\[dice=([1-9])\]([0-9]?[0-9]?[0-9])\[\/dice\]/",$post['message'],$diceresult); *note above from my moded xml file so '100' will display |
#30
|
||||
|
||||
Does this work for someone?Doesn't for me
|
#31
|
||||
|
||||
You may need to ensure the database fields are all there and that all the plugins and bnoth templates where added. I have uninstalled and reinstalled it a few times on my test board with no issues. Rukbat made some good suggestions on the previous page.
I'll go add the extra zip into the other and make note of it, anything specific you want to go with your username in the readme file? If not i'll just use your vb.org username. As for making it accept more chars, yes, that should work, I havn't looked into it in detail, It shouldn't be very hard since the code is quite strait forward. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|