D6

From NWN Lexicon



Contents

[edit] d6(int)

Rolls a 6-sided die.

int d6(
    int nNumDice = 1
);

[edit] Parameters

nNumDice

The number of dice to roll. (Default: 1)


[edit] Description

Returns the total from rolling nNumDice x d6 dice.
If nNumDice is less than 1, then 1 is used.



[edit] Remarks

A d6 (six sided die) has a 16.6% probability of turning up any one number.


[edit] Version

1.22

[edit] See Also

functions: 

Random



 author: Charles Feduke
 

Personal tools
Categories