## rex_dice

**Introduction**

Roll dice.

There are 3 ways to roll dice and get the result as the sum of these dice.

A. Call "Expression:Roll". The parameters of this expression could be

- count of dice, i.e. how many dice in this rolling.
- faces of each die, i.e. the points of each die comes from 1 to "faces".

B. Or call "Action:Roll". The parameters of this action are the same as "Expression:Roll" in previous section. Then get the result of sum by "Expression:Sum".

C. Call "Expression:Roll" with a string parameter and the format is

"nDm"

n is the count of dice, m is the faces of each die. for example, "4D6" means that rolling 4 dice and each one has 6 faces (the points are 1~6)

**Result**

Get the rolling result by "Expression:Sum", or get the rolling result of each die by "Expression:Die" with an index parameter start at 0.

**Debug panel**

It will show the rolling result at debug panel.