This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
script_syntax [2023/06/11 17:25] – justin | script_syntax [2023/11/06 14:11] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | **Bauxite**, | + | **Bauxite**, |
=====Statement Syntax===== | =====Statement Syntax===== | ||
Line 206: | Line 206: | ||
</ | </ | ||
Gives either ITEM_0001 or ITEM_0002 to the player, with a 25% chance that the item will be ITEM_0001. | Gives either ITEM_0001 or ITEM_0002 to the player, with a 25% chance that the item will be ITEM_0001. | ||
+ | |||
+ | ====Dice Rolls==== | ||
+ | In addition to the random number function, Bauxite also supports a dice notation similar to that of Dungeons & Dragons. Specifically, | ||
+ | |||
+ | **Examples: | ||
+ | <code bauxite> | ||
+ | $result = 1d6; | ||
+ | </ | ||
+ | Gives the result of rolling one six-sided die. | ||
+ | |||
+ | <code bauxite> | ||
+ | $result = 2d8 + 5; | ||
+ | </ | ||
+ | Gives the result of rolling two eight-sided dice, adding them together, then adding 5 to the total. | ||
====Range==== | ====Range==== |