D8

From NWN Lexicon
Revision as of 02:30, 6 July 2019 by Milliorn (talk | contribs) (Remarks)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search



d8(int)

Rolls an 8-sided die.

int d8(
    int nNumDice = 1
);

Parameters

nNumDice

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


Description

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



Remarks

A d8 (eight sided die) has a 12.5% probability of turning up any one number.
nNumDice has a limit of 255 (BYTE == uin8_t == 0-255).


Version

1.22

See Also

functions: 

Random



 author: Charles Feduke