NEW PbP BBCODE for DICE Rolling!
NEW PbP BBCODE for DICE Rolling!
Getting very annoyed with Invisible Castle being down, I've decided to add a Dice Rolling Module to the Forum...
When composing a message, you'll see the new DICE bbcode which cab be used to roll dices!
[dice]1[/dice]
This Mod has all the basic math (add/subtract/multiply/divide) so you could have something like 10/(3d20+3)*-2.5) within the dice BBCode. One limitation of this module (and this is actually the ONLY module currently available to roll dice in PBPBB3) is that you can't have [at this time] multiple dice like 1d4+3+2d6, which would have been useful for a Rogue, for instance.
You can test the dice bbcode in the DICE BBCODE Testing Area! thread!!
admin
When composing a message, you'll see the new DICE bbcode which cab be used to roll dices!
[dice]1[/dice]
This Mod has all the basic math (add/subtract/multiply/divide) so you could have something like 10/(3d20+3)*-2.5) within the dice BBCode. One limitation of this module (and this is actually the ONLY module currently available to roll dice in PBPBB3) is that you can't have [at this time] multiple dice like 1d4+3+2d6, which would have been useful for a Rogue, for instance.
You can test the dice bbcode in the DICE BBCODE Testing Area! thread!!
admin
- shai-hulud
- EPIC Contributor
- Posts: 2707
- Joined: Tue Jun 07, 2005 7:47 am
- Location: Meriden, CT
Re: NEW PbP BBCODE for DICE Rolling!
Question: Is it possible to roll the same thing multiple times? Like if a DM asks you to roll 10 perception checks, can you create a dice mode like:
where it would spit out 10 rolls of 1d20+10?
Code: Select all
[dice = num(10)]1d20+10[/dice]
Re: NEW PbP BBCODE for DICE Rolling!
I'll ask the creator...shai-hulud wrote:Question: Is it possible to roll the same thing multiple times? Like if a DM asks you to roll 10 perception checks, can you create a dice mode like:where it would spit out 10 rolls of 1d20+10?Code: Select all
[dice = num(10)]1d20+10[/dice]
admin
- Duniagdra
- Divine Rank 21
- Posts: 2266
- Joined: Sat Dec 29, 2007 5:17 pm
- Location: Newark, New Jersey, USA
- Contact:
Re: NEW PbP BBCODE for DICE Rolling!
While you're at it, ask the creator if he'll get to adding the ability to total multiple dice.
(i.e. 1d8+3+2d6 or 1d20+1d4)
(i.e. 1d8+3+2d6 or 1d20+1d4)
Re: NEW PbP BBCODE for DICE Rolling!
I updated the Dice mod... here is the Changelog:
0.8.4:
admin
0.8.4:
- repaired math parsing
- put dicemod version number into the db
- fixed bug: broken dice quotes in new posts created via quote button
- enabled preview without dice bbcode parsing
- enabled disabling of dice bbcode by disabling bbcode in a post
- enabled disabling dice bbcode parsing by placing it within bbcode
Code: Select all
- hopefully fixed issue with dice rolls being assinged wrong post_ids
admin
Re: NEW PbP BBCODE for DICE Rolling!
This is how you use the totalonly tag for rolling dice WITHOUT the individual die result showing (usually, you want the total!)
results in:
[dice=totalonly]0[/dice]
admin
Code: Select all
[dice=totalonly]2d6+3[/dice]
[dice=totalonly]0[/dice]
admin
Re: NEW PbP BBCODE for DICE Rolling!
I added images for d2, d3 and d100 when using the RED dice images!
admin
admin