Function | Description |
abs(number) |
Returns the absolute value of the number. |
advantage_level(name) |
Looks for a trait with the 'name' and returns its level or -1 if it can't be
found. Not available prior to v4.31. Deprecated; use 'trait_level()' for v5+. |
cbrt(number) |
Returns the cube root of the number. |
ceil(number) |
Returns the smallest (closest to negative infinity) value that is greater than
or equal to the number and is equal to a mathematical integer. |
dice(sides) |
Returns a string suitable for passing to the 'roll' function. 'dice(4)' would
return '1d4'.
|
dice(count, sides) |
Returns a string suitable for passing to the 'roll' function. 'dice(2,4)'
would return '2d4'. |
dice(count, sides, modifier) |
Returns a string suitable for passing to the 'roll' function. 'dice(2,4,-1)'
would return '2d4-1'. |
dice(count, sides, modifier, multiplier) |
Returns a string suitable for passing to the 'roll' function. 'dice(2,4,-1,2)'
would return '2d4-1x2'. |
enc(forSkills) |
Returns the current encumbrance modifier (a value from 0 to 4). If 'forSkills'
is true, the modifier is adjusted to account for equipment that has been marked as not having
its weight counting against skills. Not available prior to v5.3. |
enc(forSkills, returnFactor) |
Returns the current encumbrance modifier (a value from 0 to 4) or the move
multiplication factor if 'returnFactor' is true. If 'forSkills' is true, the modifier is
adjusted to account for equipment that has been marked as not having its weight counting against
skills. Not available prior to v5.4. |
exp(number) |
Returns Euler's number e raised to the power of the number. |
floor(number) |
Returns the largest (closest to positive infinity) value that is less than or
equal to the number and is equal to a mathematical integer. |
if(test, true_result, false_result) |
Returns 'false_result' if 'test' resolves to 0 or an empty string, otherwise
returns 'true_result'. |
log(number) |
Returns the natural logarithm (base e) of the number. |
log1p(number) |
Returns the natural logarithm of the sum of the number and 1. |
log10(number) |
Returns the base 10 logarithm of the number. |
max(num1, num2) |
Returns the greater of the two numbers. |
min(num1, num2) |
Returns the lesser of the two numbers. |
pow(num1, num2) |
Returns the value of num1 raised to the power of num2. |
roll(dice_spec) |
Returns the result of rolling dice (dice_spec uses standard dice notation or
the result of a call to the 'dice' function). |
round(number) |
Returns the closest integer value to the number, with ties rounding to
positive infinity. |
signed(number) |
Returns the number with a leading '+' if it is positive. |
skill_level(name) |
Looks for a skill with 'name' and no specialization and returns its level or 0
if it can't be found. Not available prior to v5.4. |
skill_level(name, specialization) |
Looks for a skill with 'name' and 'specialization' and returns its level or 0
if it can't be found. Not available prior to v5.4. |
skill_level(name, specialization, relative) |
Looks for a skill with 'name' and 'specialization' and returns its level or 0
if it can't be found. If 'relative' is true, the relative level is returned instead. Not
available prior to v5.4. |
sqrt(number) |
Returns the positive square root of number. |
ssrt(length, units, flag) |
Returns a value from the Size and Speed/Range Table on B550. 'length' should
be a number. 'units' should be one of "in", "ft", "yd", "mi", "cm", "km", or "m". 'flag' should
be true to have it return the size modifier or false to return the speed/range modifier. Not
available prior to v4.32. |
ssrt_to_yards(number) |
Returns the number of yards for the given size modifier from the Size and
Speed/Range Table on B550. Not available prior to v4.32. |
trait_level(name) |
Looks for a trait with the 'name' and returns its level or -1 if it can't be
found. Not available prior to v5. |