Welcome to BASH! - Basic Action Superheroes
Honor + Intrigue!!  Cinematic Swashbuckling Rolepaying Game
  Login or Register
::  Home  ::  Your Account  ::  Forums  ::
   
Menu
 
Site Information
Your IP: 54.81.139.56

Welcome, Anonymous
Nickname
Password

· Register
· Lost Password
Server Date/Time
18 November 2017 12:13:13 UTC (GMT +0)
 
BASH! - Basic Action Superheroes: Forums

BASH - Basic Action Super Heroes :: View topic - Dice Roller

 
 Forum FAQForum FAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups      RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Dice Roller

 
Post new topic   Reply to topic    BASH - Basic Action Super Heroes Forum Index -> Site News
View previous topic :: View next topic  
Author Message
Coyote
Evil Genius
Evil Genius


Joined: Apr 04, 2010
Posts: 114
Location: Earth-Prime

PostPosted: Mon Apr 19, 2010 3:34 pm    Post subject: Dice Roller Reply with quote

Rolling dice in a post
Posts and private messages can now include dice rolls. Using the [dice]...[/dice] or [bash]...[/bash] tags you can specify one or more rolls to be displayed in your message.

To make a BASH roll, the format is:

[ bash="Label" ]3,-2,5[ /bash ] (without the spaces around the brackets). The label is optional. Between the start and end tags, you need to enter the BASH multiplier, dice modifier, and result modifier in that order separated by commas.

Here is what that example of 3,-2,5 will look like:
Dice Roll:
Original Roll String: 3,-2,5   =   Mult: 3,   Dice Mod: -2,   Result Mod: 5   
Dice Roll: 4 + 3 = 7 + -2 = 5
Final Result: ( 3 * 5 ) + 5 = 20


You can ignore any trailing zeroes, so if you have a Brawn of 3 and just want to roll your soak, you can just do [ bash ]3[ / bash ] and it will assume a 0 dice modifier and a 0 result modifier. Similarly, if your roll is a 4 multiplier with a -2 dice modifier, you can do [ bash ]4,-2[ /bash ] and it will assume a 0 result modifier. Note that the roller automatically detects doubles and implements exploding dice as per the BASH! rules so most rolls should be a one-and-done..

Oh, and just to be clear: The original Dice roller is still there, so if you want to roll your own 2d6, or other dice like a d4, d8, etc. you can still do so as follows):

Dice Command Syntax:

* [dice](Dice Strings)[/dice]

The Dice String parameter can include multiple dice strings in the standard throw syntax.

Throw Syntax:

* (Number of Dice)d(Type of Dice)
* (Number of Dice)d(Type of Dice)(+,-,x,*,/)(Modifier)

It may look complicated if you've never seen this system before, but it is actually quite easy to understand.

Optionally, you can specify an operation and modifier for each throw, as shown above. Supported operations are addition (+), subtraction (-), multiplication (* or x), and division (/).

Some Examples:

* d6 - Throw a single 6-sided die.
* d20 - Throw a single 20-sided die.
* 2d6 - Throw two 6-sided dice.
* d100 - Somewhat special, throws two 10 sided die, and multiplies one by 10.. resulting in a range of 100
* d20+5 - Throw a 20-sided die and add 5 to the result.
* 4d20+10 - Throw four 20-sided dice and add 10 to the total.

Hopefully this should make sense, after you try it a few times it's easy to use.

Output Examples:

Here are a few instances of the 'Die' code in action, with the code above.
Totals are provided for convience, but obviously are not relevant to all throws.

Code:
[dice]d20[/dice]

Dice Roll:
Original Roll String: d20 Fixed
20-Sided Dice Results: 1




Code:
[dice]2d20+10[/dice]

Dice Roll:
Original Roll String: 2d20+10
20-Sided Dice Results: (11, 13) + 10 (Total = 34)


Code:
[dice]4d4+10 3d6x2 2d100 4d4+10[/dice]

Dice Roll:
Original Roll String: 4d4+10 3d6x2 2d100 4d4+10
4-Sided Dice Results: (4, 4, 2, 4) + 10 (Total = 24)
Original Roll String: 4d4+10 3d6x2 2d100 4d4+10
6-Sided Dice Results: (3, 3, 5) * 2 (Total = 22)
Original Roll String: 4d4+10 3d6x2 2d100 4d4+10
100-Sided Dice Results: 0+8(8), 50+3(53) (Total = 61)
Original Roll String: 4d4+10 3d6x2 2d100 4d4+10
4-Sided Dice Results: (4, 1, 1, 4) + 10 (Total = 20)


In case you are wondering, the numbers you see when you 'preview' will change when you go to post. If your post is edited after the roll is generated and posted, it will provide a warning that there my have been modification attempts on the results.

Dice Mod (version 1.1.0) by Jeff Leigh.
Bash Mod (version 1.0.0) by Lindharin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    BASH - Basic Action Super Heroes Forum Index -> Site News All times are GMT - 5 Hours
Page 1 of 1
  
  

Jump to:   

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001 phpBB Group

All logos and trademarks in this site are property of their respective owner.


The comments are property of their posters, all the rest © 2010 by Basic Action Games.




(Original PHP-Nuke Code Copyright © 2004 by Francisco Burzi)
Page Generation: 0.11 Seconds
:: BASH! style by Basic Action Games ::