**Hero System Dice Lib Update**

The following is an update to the Dice Library Project specifically for Hero System and extends the existing functionality to allow for fractions of a die. Specifically resulting in either +1, or 1/2 as appropriate. It also allows for an optional d6-1 instead of a half.

If you are unfamiliar with the Hero System there are a number of occasions when you may wish to use fractions. A typical (or Normal) Hero System attack produces Stun and Body damage. The number of dice rolled to produce the Stun is calculated as a function of the strength of the attack divided by 5. Body is calculated by adding up the number of dice rolled and subtracting 1 for each number 1 rolled and adding 1 for each number 6 rolled.

The existing hero system chat macro covers the basics and typing "[10d6h] [10d6b]" into the chat window will prduce a valid result. However there are circumstances where the strength of an attack is does not end in either 5 or 0. A character with STR 18 would typically punch for 18/5 or 3.6 dice of stun. In this case values of 0.5 or more should result in a half die, so 3 and a half dice. Unfortunately in Hero System half dice have different rules for calculating body damage and this is not covered by the existing macro. For a half die you roll a d6 and use the table below:

Code: Select all

`Roll Stun Body`

1 - 1 - 0

2 - 1 - 0

3 - 2 - 0

4 - 2 - 1

5 - 3 - 1

6 - 3 - 1

This update modifies the existing Hero System macro so that you can enter decimal places for the number of dice and adds a couple of extra functions to handle killing attacks and the different way killing attacks deal with fractions.

**NOTE:**It does not change any other existing dice functions so other game systems will be unaffected.

**How to use:**

The function is designed to used so that in macros you can simply divide the strength of an attack by 5 to get the number or dice to roll and the function will calculate the correct stun and body. For example typing

Code: Select all

`[h:dice=Str/5][r: herostun(dice,6)] [r: herobody(dice,6)]`

**Examples of Valid Syntax:**

[r: herostun(7.6,6)] [r: herobody(7.6,6)]

[10d6h] [10d6b]

[9.2d6h] [9.2d6b]

[5.6d6h] [5.6d6b]

[d6h] [d6b]

**Killing Attacks:**

Killing attacks work slightly differently in that they divide the strength of the attack by 15 and fractional values may result in +1 or a half die. So 15 points gets you a 1d6 killing attack. 20 points would get you 1d6+1. 25 points 1.5d6 and 30 points 2d6. This produces the body damage, stun is calculated by a second roll of (unusally but not always) 1d6-1 and multiplying the body to get the stun. Stun is never less than body.

**How to use:**

The function is designed to used so that in macros you can simply divide the strength of an attack by 15 to get the number or dice to roll and the function will calculate the correct stun and body. For example typing

Code: Select all

`[h:dice=Str/15][r: herokilling(dice,6)] [r: heromultiplier(1,6,-1)]`

**Examples of Valid Syntax:**

[r: herokilling(3,6)] [r: heromultiplier(1,6,-1)]

[r: herokilling(3,6,1)] [r: heromultiplier(1,6)]

[r: herokilling(2,6,-1)] [r: heromultiplier(1,6,1)]

[r: herokilling(3.2,6)] [r: heromultiplier(1,6,-1)]

[r: herokilling(3.6,6)] [r: heromultiplier(1,6,-1)]

[3d6hk] [1d6hm-1]

[1d6hk] [1d6hm+1]

[1.5d6hk] [d6hm]

[3.2d6hk] [1hm]

[3.66666d6hk] [3hm]

**Killing Dice Option:**

According to the offical Hero System rules a GM may allow their players to roll d6-1 instead of a hald die for killing attacks (minimum value 1). To enable this option I have added a "herokilling2" function that works exactly the same as the function above but will roll d6-1 instead of a half die should the need arise.

**Examples of Valid Syntax:**

[r: herokilling2(1.6,6)] [r: heromultiplier(1,6,-1)]

[1.6d6hk2] [1d6hm-1]

**How to Install:**

Unzip the file below and copy to your MapTool "lib" directory. Replace the existing DiceLib (probably dicelib-1.0.b18.jar) with the unzipped file and rename it to match the existing one (probably dicelib-1.0.b18.jar).

**Source Code:**

For those running their own builds or distributions I attach a patch file for the DiceLib Project. If you have any questions I am more than happy to answer any.