Go Back   EN World D&D / RPG News > Meta - Forums About Forums > Meta

Meta Post comments and questions about the messageboards and other parts of EN World. If you have a problem, this is where to go. Moderator email addresses are posted here.

 
Share LinkBack Thread Tools Display Modes
Old 5th March 2004, 03:04 AM   #1 (permalink)
Admiral o' th' High Seas
 
Morrus's Avatar
 
Join Date: Jan 2002
Location: Southampton, England
Posts: 15,912
Morrus Bugbear Strangler (Lvl 6)
Got dice?

Playing a PbP game? Need to roll some dice?

[dice]

I've implemented a new code, with which you can perform a die roll. You can roll as many as 3 dice of 30 faces and as few as 1 die of 2 faces. Once you roll the dice it is stored in the post so you cannot roll again even if you edit the post or whatever.

How to use it:

[dice={dices}]{faces}[/dice]

Examples - replace ( and ) with [ and ] in the below examples:

(dice=2)10(/dice) (This will roll 2d10)

(dice=1)6(/dice) (This will roll 1d6)

Remember, the code works for a maximum of 3 dice, and only between 2-30 faces on each.
__________________

Last edited by Morrus; 5th March 2004 at 03:07 AM..
Morrus is offline   Reply With Quote
Old 5th March 2004, 03:16 AM   #2 (permalink)
Admiral o' th' High Seas
 
Morrus's Avatar
 
Join Date: Jan 2002
Location: Southampton, England
Posts: 15,912
Morrus Bugbear Strangler (Lvl 6)
And another roll:

[dice]
__________________
Morrus is offline   Reply With Quote
Old 5th March 2004, 03:17 AM   #3 (permalink)
Admiral o' th' High Seas
 
Morrus's Avatar
 
Join Date: Jan 2002
Location: Southampton, England
Posts: 15,912
Morrus Bugbear Strangler (Lvl 6)
And another:

[dice]
__________________
Morrus is offline   Reply With Quote
Old 5th March 2004, 03:31 AM   #4 (permalink)
Registered User
 
Join Date: Jul 2002
Posts: 5,685
Olgar Shiverstone has disabled Experience Points
Can I try?

Strength: [dice]

Intelligence: [dice]

Wisdom: [dice]

Dexterity: [dice]

Constitution: [dice]

Charisma: [dice]

Edit: Hmm ... apparently only works once per post.
__________________
"The Soul of D&D? It's rolling a natural 20 when you're down to 3 hit points and the cleric's on the floor and you're staring that sunnavabitch bugbear right in his bloodshot eye and holding the line just long enough to let the wizard unleash a fireball at the guards who are on their way, because they're all that stands between you, the Foozle and Glory." - WizarDru

Last edited by Olgar Shiverstone; 5th March 2004 at 03:31 AM..
Olgar Shiverstone is offline   Reply With Quote
Old 5th March 2004, 03:33 AM   #5 (permalink)
Stabs the Wizard
 
Creamsteak's Avatar
 
Join Date: Jan 2002
Location: Nowhere.
Posts: 9,065
Creamsteak Goblin Sharpshooter (Lvl 2)
Send a message via AIM to Creamsteak
Holy... niceness...

Is there any way of editing the code so that the greyspace doesn't stretch out? And if a user deletes the entire text of their post and then repeats the process, does it change the results? Any way of having a version with no image? Can you add modifiers?

Just three obvious questions, and I'll test out one right now:
[dice]
Creamsteak is offline   Reply With Quote
Old 5th March 2004, 03:35 AM   #6 (permalink)
Admiral o' th' High Seas
 
Morrus's Avatar
 
Join Date: Jan 2002
Location: Southampton, England
Posts: 15,912
Morrus Bugbear Strangler (Lvl 6)
Olgar, you can only do it once per post. The system remembers one result for each post you make.

Creamsteak, I'm not good enough to change it like that (I just copied and pasted to get it working).

You cannot put the code in when editing a post, so if you try and edit your post, it won't work.
__________________
Morrus is offline   Reply With Quote
Old 5th March 2004, 03:38 AM   #7 (permalink)
Registered User
 
Join Date: Jul 2002
Posts: 5,685
Olgar Shiverstone has disabled Experience Points
Makes online character generation, combat, and the like a little post-intensive.

Still, a very neat tool. Thumbs up!
__________________
"The Soul of D&D? It's rolling a natural 20 when you're down to 3 hit points and the cleric's on the floor and you're staring that sunnavabitch bugbear right in his bloodshot eye and holding the line just long enough to let the wizard unleash a fireball at the guards who are on their way, because they're all that stands between you, the Foozle and Glory." - WizarDru
Olgar Shiverstone is offline   Reply With Quote
Old 5th March 2004, 03:41 AM   #8 (permalink)
Stabs the Wizard
 
Creamsteak's Avatar
 
Join Date: Jan 2002
Location: Nowhere.
Posts: 9,065
Creamsteak Goblin Sharpshooter (Lvl 2)
Send a message via AIM to Creamsteak
I know just enough java now to make my own dice roller executables... don't think I could be too helpful though.
Creamsteak is offline   Reply With Quote
Old 5th March 2004, 03:47 AM   #9 (permalink)
Admiral o' th' High Seas
 
Morrus's Avatar
 
Join Date: Jan 2002
Location: Southampton, England
Posts: 15,912
Morrus Bugbear Strangler (Lvl 6)
Quote:
Originally Posted by Creamsteak
Is there any way of editing the code so that the greyspace doesn't stretch out?
How's that? Better?
__________________
Morrus is offline   Reply With Quote
Old 5th March 2004, 04:02 AM   #10 (permalink)
Stabs the Wizard
 
Creamsteak's Avatar
 
Join Date: Jan 2002
Location: Nowhere.
Posts: 9,065
Creamsteak Goblin Sharpshooter (Lvl 2)
Send a message via AIM to Creamsteak
Much. Can you de-center it too? Or can I affect it with [center][right] type tags?
Creamsteak is offline   Reply With Quote
Old 5th March 2004, 07:26 AM   #11 (permalink)
WotC's bitch
 
hong's Avatar
 
Join Date: Jan 2002
Location: Australia
Posts: 19,403
hong Gnoll Huntmaster (Lvl 5)
Morrus, I wouldn't mind having a look at the random number generation code.
hong is offline   Reply With Quote
Old 5th March 2004, 07:39 AM   #12 (permalink)
Admiral o' th' High Seas
 
Morrus's Avatar
 
Join Date: Jan 2002
Location: Southampton, England
Posts: 15,912
Morrus Bugbear Strangler (Lvl 6)
Quote:
Originally Posted by hong
Morrus, I wouldn't mind having a look at the random number generation code.
You can have a look at everything I used. Basically, it was a single page of instructions on code changes to make. I didn't understand it - just copied and pasted. I've attached the instructions here.
Attached Files
File Type: txt diceroll_instructions.txt (7.1 KB, 86 views)
__________________
Morrus is offline   Reply With Quote
Old 5th March 2004, 07:49 AM   #13 (permalink)
Stabs the Wizard
 
Creamsteak's Avatar
 
Join Date: Jan 2002
Location: Nowhere.
Posts: 9,065
Creamsteak Goblin Sharpshooter (Lvl 2)
Send a message via AIM to Creamsteak
So if you change align="center" to align = left and add replace most of the bracketed dice stuff with "DiceL" could you have a dice left and a dice right command? And what about if you make a ShortDice without the image, and just put the number itself on the page?

Hell, I've got no idea what I'm saying, but that's doesn't look to hard to screw around with.

Last edited by Creamsteak; 5th March 2004 at 07:50 AM..
Creamsteak is offline   Reply With Quote
Old 5th March 2004, 07:57 AM   #14 (permalink)
WotC's bitch
 
hong's Avatar
 
Join Date: Jan 2002
Location: Australia
Posts: 19,403
hong Gnoll Huntmaster (Lvl 5)
Quote:
Originally Posted by Morrus
You can have a look at everything I used. Basically, it was a single page of instructions on code changes to make. I didn't understand it - just copied and pasted. I've attached the instructions here.
Suggestion: replace rand() in

Code:
                        	$dicedetail['data'][] = rand(1,$faces);
with mt_rand(). rand() uses the default random number generator provided by the server, and this can have poor statistical properties especially on older systems.

http://www.php.net/manual/en/function.mt-rand.php

Trust me, I'm a statistician.


Hong "no, really" Ooi
hong is offline   Reply With Quote
Old 5th March 2004, 08:02 AM   #15 (permalink)
Stabs the Wizard
 
Creamsteak's Avatar
 
Join Date: Jan 2002
Location: Nowhere.
Posts: 9,065
Creamsteak Goblin Sharpshooter (Lvl 2)
Send a message via AIM to Creamsteak
Nice... I'll steal that little bit from Hong...
Creamsteak is offline   Reply With Quote
Old 5th March 2004, 08:21 AM   #16 (permalink)
Admiral o' th' High Seas
 
Morrus's Avatar
 
Join Date: Jan 2002
Location: Southampton, England
Posts: 15,912
Morrus Bugbear Strangler (Lvl 6)
Sounds easy enough.

Say, don't s'pose anyone would know how to

1) Allow multiple rolls in a post;
2) Show different graphics depending on the die type (I don't mind limiting it to "real" dice instead of anything between 2 and 30 - it would require quite a few dice to be drawn, but I'm sure that could be done).
__________________
Morrus is offline   Reply With Quote
Old 5th March 2004, 12:58 PM   #17 (permalink)
Registered User
 
Zappo's Avatar
 
Join Date: Jan 2002
Location: Padova, Italy (near Venice)
Posts: 5,428
Zappo Goblin Sharpshooter (Lvl 2)
Send a message via ICQ to Zappo
Ooh, lemme try...
[dice]
Zappo is offline   Reply With Quote
Old 5th March 2004, 04:08 PM   #18 (permalink)
Registered User
 
diaglo's Avatar
 
Join Date: Feb 2002
Location: Stoned Mountain, GA
Posts: 16,722
diaglo Hobgoblin Soldier (Lvl 3)
Send a message via Yahoo to diaglo
sweet.

[dice]
__________________
Story Hour

OMG! The SKY IS FALLING! --JoeGKushner
Myself, I plan to masturbate less -- der_kluge
I know that I've never really liked d20. I think it was designed by a bunch of hacks --- Monte Cook
I am sickened beyond belief. The half-orc wizard is obviously the best possible PC, and I only had to read 10 pages of the book to figure it out. D&D is dead to me! -- Mike Mearls
FWIW, I'm on the design team and I pretty much find WoW as fun and interesting as banging my head against a brick wall. -- Mike Mearls
you happen to say that 4E reminds you of the reasons you decided against a career as a special-Ed teacher--noted rpg author Darrin Drader
diaglo is offline   Reply With Quote
Old 5th March 2004, 04:36 PM   #19 (permalink)
Registered User
 
diaglo's Avatar
 
Join Date: Feb 2002
Location: Stoned Mountain, GA
Posts: 16,722
diaglo Hobgoblin Soldier (Lvl 3)
Send a message via Yahoo to diaglo
Quote:
Originally Posted by Creamsteak
Holy... niceness...
[dice]

you wait patiently after casting your spell.. suddenly you feel strange. as if you are here but not here.

another voice enters your mind.

Hiya....

your find familiar spell has summoned a special form...one of true kindred with your spirit.

a pseudo dragon.
__________________
Story Hour

OMG! The SKY IS FALLING! --JoeGKushner
Myself, I plan to masturbate less -- der_kluge
I know that I've never really liked d20. I think it was designed by a bunch of hacks --- Monte Cook
I am sickened beyond belief. The half-orc wizard is obviously the best possible PC, and I only had to read 10 pages of the book to figure it out. D&D is dead to me! -- Mike Mearls
FWIW, I'm on the design team and I pretty much find WoW as fun and interesting as banging my head against a brick wall. -- Mike Mearls
you happen to say that 4E reminds you of the reasons you decided against a career as a special-Ed teacher--noted rpg author Darrin Drader
diaglo is offline   Reply With Quote
Old 5th March 2004, 04:44 PM   #20 (permalink)
(Trace)
 
Hand of Evil's Avatar
 
Join Date: Jan 2002
Location: Cookie Jar
Posts: 10,564
Hand of Evil Goblin Sharpshooter (Lvl 2)
[dice] and roll I do
__________________
Signature:
All I need is minions and I would rule the world.

Links updated: 200.Oct.7
Threads to reference:

DM ADVICE ---Maps and Other Campaign Resources ---Programs to organize campaigns ---
Phineas Crow Maps!
Hand of Evil is offline   Reply With Quote


Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


And yet another word from our sponsors
Visit Our Sponsors
Visit Our Sponsors... Again
Powered by vBadvanced CMPS v3.0.1

All times are GMT +1. The time now is 02:59 PM.


Site Contents © 2008 ENWorld
PHP Ajax Multimedia Web Framework © 2008 Digital Media Graphix
Powered by vBulletin® Version 3.8.0 Beta 1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

"Vault Data" powered by VaultWiki v2.5.1.
Copyright © 2008 - 2009, Cracked Egg Studios.