3dr 中文文档教程
Dungeons and Dragons Dice Roller (3DR)
By Travis Stratton
die roller 的不同功能包括:
- critDamage
- d20Rolls
- d20adv
- d20disAdv
- dieRoller
- dieRollString
- simpleRoll
- splitDiceRollString
Basic Functions:
DiRoller
BasicUsage
simpleRoll(sides) // returns a single die roll no mods
//ex:
simpleRoll(20) => 3;
dieRoller(count, sides, modifier) // mod is optional
result = [ die roll, modifier, total];
// ex:
dieRoller(2, 6, 3) => [ [1,2], 3, 6 ] // 2d6 + 3
dieRollString(roll) // Converts the die rolls to a string
// ex:
dieRollString([ [1,2], 3, 6 ]) => "(1, 2) + 3 = 6"
Dungeons and Dragons Dice Roller (3DR)
By Travis Stratton
Different Functions for the die roller include:
- critDamage
- d20Rolls
- d20adv
- d20disAdv
- dieRoller
- dieRollString
- simpleRoll
- splitDiceRollString
Basic Functions:
DiRoller
BasicUsage
simpleRoll(sides) // returns a single die roll no mods
//ex:
simpleRoll(20) => 3;
dieRoller(count, sides, modifier) // mod is optional
result = [ die roll, modifier, total];
// ex:
dieRoller(2, 6, 3) => [ [1,2], 3, 6 ] // 2d6 + 3
dieRollString(roll) // Converts the die rolls to a string
// ex:
dieRollString([ [1,2], 3, 6 ]) => "(1, 2) + 3 = 6"