Calculations
Based on statistic (/calc
)
info
The calc
allow to realize calculations with the statistics of the character and apply an expression
Usage
/calc [statistic] [*sign] [expression] (*transform) (*character) (comment)
- statistic: The statistic to use.
- sign: The sign of the operation to perform. Valid signs are:
+
,-
,*
,/
,^
(power),%
(modulo),/
(division),≠
(not equal to),=
(equal to),⩾
(greater than or equal to),⩽
(less than or equal to),>
(greater than),<
(less than). - expression: The expression to apply.
- transform: The transformation to apply to the final result, including:
ceil
(round up),floor
(round down),round
(round to the nearest integer),abs
(absolute value),sqrt
(square root), orsquare
(square the value). You can combine two transformations, such asceil(abs())
. Additionally, it is possible to use functions supported bymathjs
, even if they are not in the list of suggested terms. The allowed function needs to take only one argument (or optionally two, but the second won't be set).
remarque
It is possible to use the "non ascii" version of the signs, for example >=
for ⩾
or !=
for ≠
and ==
for =
.
Simple (/math
)
Usage
/math [expression] (*character) (comment)
expression
: Expression mathématique to perform.(*personnage)
: Character to use (only for the result display)(commentaire)
: Comments if needed.
The command allows you to perform a simple calculation without using a statistic. The expression can include mathematical operations, dice rolls, and functions supported by mathjs
.