User Tools

Site Tools


script_syntax

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
script_syntax [2023/11/06 14:11] justinscript_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. Specifically, **XdY**, where "Xis the number of dice to roll and "Yis how many sides the dice have.+Bauxite also supports a dice notation similar to that of Dungeons & Dragons for generating random numbers. Specifically, **XdY**, where **X** is the number of dice to roll and **Y** is how many sides the dice have.
  
 **Examples:** **Examples:**
 <code bauxite> <code bauxite>
-$result = 1d6;+$result = 1d20;
 </code> </code>
-Gives the result of rolling one six-sided die.+Gives the result of rolling a twenty-sided die.
  
 <code bauxite> <code bauxite>
-$result = 2d8 + 5;+$result = 2d8 + 1d6;
 </code> </code>
-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====
script_syntax.txt · Last modified: 2023/11/06 14:13 by justin