Warning: Parameter 1 to Language::getMagic() expected to be a reference, value given in /home/trsweb/public_html/wiki/includes/StubObject.php on line 58
CDS:RollDice - Twin Rose Wiki

CDS:RollDice

From Twin Rose Wiki

Jump to: navigation, search

RollDice

An RPGScript function that returns the result of rolled dice.

Usage

RollDice(<number of dice>, <size of each die>);

Examples

Roll 1d6:
return RollDice(1, 6); 

Roll 4d6:
return RollDice(4, 6);
Roll 1d6+1
return RollDice(1, 6) + 1;
Roll 2d4 + 1d6
return RollDice(2, 4) + RollDice(1, 6);
This page is a Stub, please expand it if you have any relevant details.
Personal tools