PDA

View Full Version : Dice Roller



Jamfke
06-11-2009, 12:56 AM
It would be nice to have an integrated dice roller for the PBP forums. I don't know much about the VBulletin boards, but I have seen several VBulletin boards using one variation or another. One in particular is over at Myth-Weavers (http://www.myth-weavers.com/), they've got a lot of cool features that make playing a PBP a satisfying experience. One of the neater features is inline spoiler text that opens a pop-up box by hovering over whatever word you've chosen to hide your spoiler under.

Like stating that you are firing your weapon at the bad guys; the bold text would be where you hover or click to open up the spoiler box. Makes for a much cleaner posting environment.

Just a thought.

Magman
06-11-2009, 04:23 AM
I will do the research for one while at work and will have one installed by the end of the day.

That was on my do-to list, but just wasn't near the top yet. But I will look into it and get it knocked out today.

Magman
06-11-2009, 06:46 AM
Dice Rolling Example:

6


Ok I added two seperate dice rolling abilities which can be run independantly. The first is the code from above. This will generate the series of dice images you see in the next post.

The other is generated after you post. There is an option on the bottom of all post to attach a ROLL. It stacks, so you can keep entering multiple rolls as you can see below.

I want to examine these and create a unique dice rolling script. But right now, I do not have the time so these will have to do. But in the future, I will have a better one available.

**** Once you do either one of these, you can not edit the post to remove it. There isn't any option for it. You can edit everything else about the post, just not the dice stuff.

Magman
06-11-2009, 06:48 AM
Here is what it would look like:

[dice0]

Whill
06-11-2009, 10:52 AM
http://rpg.norwinter.com/konkret/

AS an example, this one includes the wild die exploding on 6. Just change the "Use an RPG System" drop-down to "WEG's Wild Die" and it changes the #D drop to D6 for you, and will calculate correctly with 6 on wild die, showing the extra dice results and new total. I don't know how random the rolls actually are in the first place.

Magman
06-11-2009, 10:58 AM
I can physically write anything you guys want as a dice rolling script in PHP. The problem is embedding it within the forum post. That is the part I need to look at. But as far as writing the code, I am more than qualified to do that.

I will check out the link and see what they got though.

Jamfke
06-11-2009, 04:27 PM
Norwinter's roller is nice, but it doesn't post to a forum anymore. I used to have it working on my old PBP site, but the guy who created it doesn't seem to respond to correspondence anymore.

I like the first one you added Magman, the one that puts the info in a table, but for D6 it would be nice to add the Wild Die option somehow. [dice0]

Magman
06-11-2009, 06:16 PM
I will spend the time and look at the coding for those two. I will write my own and included everything we need.

Whill
06-11-2009, 11:38 PM
Why do all of my posts now have this in the bottom right corner?

http://www.mediafire.com/imgbnc.php/1bd9b130830d31ffe15ff137ab6f43694g.jpg

" [x] Add Dice Roll to Message "

Grimace
06-11-2009, 11:42 PM
Ummm...they don't. At least not with the Armada skin, they don't.

Ah...edit:

It looks like it comes up only for YOU to see. I get it on mine, but it doesn't show on anyone elses. On Armada it actually shows two dice and the word Roll after it.

Grimace
06-11-2009, 11:50 PM
Okay...I had a slew of problems pop up...so I'll try to go through them.

After posting about the dice roller, I tried it out.

It gave me an error, saying a security key was missing.

So I clicked on the link that says "let the administrator know".

Gives me the options for Name, Email Address, Subject, and Message.

Put in my name, put in my email address, chose the subject of Other and typed in a message. Clicked "send" and it gave me the message of "an error has occured".

So methinks there's some glitch somewhere.

Magman
06-12-2009, 06:48 AM
Glitch in the Matrix?

The security key problem occurred because I did not update your style yet. I as using the fixed armada style when I tested it. The first thing we need to do is decide on the styles we are going to use. A lot of what I need to update for the site is directly related to the changing coding in the styles. So rather than running my wheels in the mud and not getting anywhere, decide on which ones we are keeping, which ones we want added and which ones will be deleted.

If you try the dice roller in the fixed style it should work

I will look at contacting the admin thingy. Never even gone there yet so I can't say what the problem is yet.

But I will investigate.

Thanks

Magman
06-12-2009, 06:49 AM
Given this a test in fluid styles of armada.

Magman
06-12-2009, 06:55 AM
Findings:

Your initial contact us message did make it too me. But what happened was when it tried to go back to the page it came from, it was still trying to use the roll script. So you got the error message for that post.

So once I update for the security key, you will not get that message anymore.