This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
script_syntax [2023/11/06 14:10] – justin | script_syntax [2023/11/06 14:11] – justin | ||
---|---|---|---|
Line 212: | Line 212: | ||
**Examples: | **Examples: | ||
<code bauxite> | <code bauxite> | ||
- | 1d6 | + | $result = 1d6; |
</ | </ | ||
Gives the result of rolling one six-sided die. | Gives the result of rolling one six-sided die. | ||
<code bauxite> | <code bauxite> | ||
- | 2d8 + 5 | + | $result = 2d8 + 5; |
</ | </ | ||
Gives the result of rolling two eight-sided dice, adding them together, then adding 5 to the total. | Gives the result of rolling two eight-sided dice, adding them together, then adding 5 to the total. |