Page 1 of 1

In-game Dice Rolling

Posted: Wed Jun 05, 2013 1:23 pm
by carnage_lee
We've installed a new MOD on the forum to allow members to 'roll dice' on the forums.

The MOD has a number of features but it's only a beta and development on it is patchy and some features we might like are not supported.

We've tested the MOD over the past few weeks and think it's worth releasing in spite of it's shortcomings.

Here's a quick overview:

The Dice Roller is accessed via two new BBCodes, the BBCode is parsed when you make a post and the result is lodged in the database - when the post is viewed the roll is retrieved and presented in the text. Dice rolls can't be edited once the post is submitted - Keepers can remove the rolls if they wish (as Moderators). One of the features I liked was the ability to see representations of the dice making up the roll, as inline images.

How to Roll some Dice:

The BBCode supports the following syntax - 'the number of rolls, the dice type =/- modifiers' (this follows standard RPG dice rolling)

So three six sided dice plus 2 becomes : 3d6 +2
To roll this you would do this:

Code: Select all

[dice]3d6+2[/dice]
And that renders in the post like this:
[dice]1[/dice]

This is the same as using he modes 'string' and 'total' together. We've chosen this as the default setting as it's the most useful when representing a dice roll.


There are some additional 'modes' that you can access:
total, string and quote (usage of these is straight forward - but quote does not actually do what it implies ) - here are the details:

Code: Select all

[dice=total]3d6+2[/dice]
[dice=total]2[/dice]
This just gives the total... the end result.

Code: Select all

[dice=string]3d6+2[/dice]
[dice=string]3[/dice]
'string' lists the dice rolled... it also has the total listed.

Code: Select all

[dice=string,total]3d6+2[/dice]
[dice=string,total]4[/dice]
'string and total' - same as the first roll example as we've made the default methods list both the roll and the total.

Code: Select all

[dice=quote]3[dice]
[dice=quote]3[/dice]
Quote: Actually quotes the referenced roll in the same post - counting starts at zero so this quotes the 4th dice roll in this message - which is the roll above. This is the only way to reference the dice roll in the same post (as the roll is made once posted).


Limitations:
The math support is pretty basic - best to keep to simple + and - amounts.
There is no support for multiple dice type in the same roll - so no 2d6+1d4 types of roll.
There is no handy direct way to tag what the roll is for.
There's no support for 'keep best three' types of roll.
As dice rolls are not made until you post the message you can't know the outcome until you post the message and once that's done you can't change it.
20 Dice rolls per post, no more than that.

Re: Welcome to the Dice Roll Forum

Posted: Wed Jun 05, 2013 1:30 pm
by carnage_lee
The following Dice are supported:

4 sides
[dice]0[/dice]

6 sides
[dice]1[/dice]

8 sides
[dice]2[/dice]

10 sides
[dice]3[/dice]

12 sides
[dice]4[/dice]

20 sides
[dice]5[/dice]

100 sides (percentage)
[dice]6[/dice]

All die apart from d100 have accompanying images that can be displayed instead of just numbers - if you want to view images you have to make that change on your UCP (User Control Panel) -- Board Preferences -- Edit display options -- Display dice (the options are Text, Bajahs Red or Classic Steel) - the Bajahs Red images are smaller than the Classic Steel ones.

Re: In-game Dice Rolling

Posted: Wed Jun 05, 2013 2:13 pm
by DrPeterson
Yay!

I was starting to believe Invisible Castle was plotting against us!


[dice]1[/dice]
[dice]0[/dice]

Suggested Useage

Posted: Wed Jun 05, 2013 2:18 pm
by carnage_lee
You can use the in-game dice like this:

Example

Harvey took a look around the room that he had been shown into, it appeared to be some kind of study; one wall was mostly lined with book-shelves, opposite a small table and two very comfortable looking wing-backed armchairs were set on a large rug by the open fire place. What held Harvey's attention however, was the leather topped desk positioned in front of the windows, various files and papers were stacked on each side. If this was Sir Thomas' study then there might be a diary or appointment book and that ought to be on the desk... dare he take a quick snoop? Soames was bound to be back shortly but if there were any evidence to link Sir Thomas to the odd goings on in the village then this might be his best chance.

His mind made up, Harvey quickly made his way over to the desk and started to quickly search, mentally crossing his fingers that he had time...
Harvey Walters conducts a fast search,Spot Hidden(45%) [dice]0[/dice]

Re: In-game Dice Rolling

Posted: Wed Jun 05, 2013 3:20 pm
by Cearlan
Is this for general release yet or just selected games? If it is a general release can it be linked to, for example, my two games.

Like Dr P said, Invisible Castle, good though it may be, can be a temperamental beast when it wants. I prefer the Bajahs Red over Classic Steel personally

[dice]0[/dice] spot hidden
[dice]1[/dice]

Re: In-game Dice Rolling

Posted: Wed Jun 05, 2013 5:26 pm
by DrPeterson
[dice]0[/dice]

Re: In-game Dice Rolling

Posted: Fri Jun 07, 2013 3:20 am
by PatGrillo
[dice]0[/dice]

Re: In-game Dice Rolling

Posted: Fri Jun 07, 2013 3:20 am
by PatGrillo
lol. That's a good start!

Re: In-game Dice Rolling

Posted: Fri Jun 07, 2013 5:43 pm
by DrPeterson
Oh no! Invisible castle has invaded the dice roller!