Topic: [TSOY] rolling Fudge dice in OpenRPG / other programs
Started by: Mike Lucas
Started on: 3/24/2006
Board: CRN Games
On 3/24/2006 at 4:43am, Mike Lucas wrote:
[TSOY] rolling Fudge dice in OpenRPG / other programs
If anyone out there uses OpenRPG (www.openrpg.com), I've figured out how to do the weird TSOY fudge dice. I originally thought I was going to have to write a custom die-roller but it turns out the existing functions will work. (This could probably be applied to other programs as well.)
It works because a fudge die roll is mathematically equivalent to 1d3-2, which gives a one in three chance for each of -1, 0, and +1 to be rolled. Since TSOY uses 3 fudge dice, the normal roll is then 3(1d3 - 2), or 3d3 - 6. For bonus and penalty dice, OpenRPG luckily includes the takeHighest(n) and takeLowest(n) functions.
Normal roll: [3d3-6]
1 Bonus Die: [4d3.takeHighest(3) - 6]
2 Bonus Dice: [5d3.takeHighest(3) - 6]
N Bonus Dice: [?d3.takeHighest(3) - 6]
(The question mark makes a popup appear when you submit your roll. Enter number of bonus dice + 3, e.g. if you have 4 bonus dice enter 7.)
1 Penalty Die: [4d3.takeLowest(3) - 6]
2 Penalty Dice: [5d3.takeLowest(3) - 6]
N Penalty Dice: [?d3.takeLowest(3) - 6]
If you wanted to get really fancy, you could add another question mark at the end, so that you could enter your attribute number into a second popup and have it added automatically.
Cheers
Mike