This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| script_syntax [2023/11/06 14:11] – justin | script_syntax [2023/11/06 14:13] (current) – justin | ||
|---|---|---|---|
| Line 208: | Line 208: | ||
| ====Dice Rolls==== | ====Dice Rolls==== | ||
| - | In addition to the random number function, | + | Bauxite also supports a dice notation similar to that of Dungeons & Dragons |
| **Examples: | **Examples: | ||
| <code bauxite> | <code bauxite> | ||
| - | $result = 1d6; | + | $result = 1d20; |
| </ | </ | ||
| - | Gives the result of rolling | + | Gives the result of rolling |
| <code bauxite> | <code bauxite> | ||
| - | $result = 2d8 + 5; | + | $result = 2d8 + 1d6; |
| </ | </ | ||
| - | 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 and one six-sided die. |
| ====Range==== | ====Range==== | ||