Equations


When creating numeric Rule Paths or Variable Check Actions you'll might come to write complex math equations. DreamPath has it's limits and you should know what can be done and can't be with equations.

Allowed Characters
Numbers - any integer number.

Math Operators - + , - ,* , / , -* , -+ , -/
Variables - writing # and then a number will be the equivalent to the value of the variable with the number. Switch variable will return 1 for on and 0 for off (example: "2 * #3". This will multiply be two the value of variable number three)
Dice - Writing @ and then a number will give a random number from one to the number stated (example: "@6". This will return a random number between 1 to 6)

Unique Results
* Result over 10000 - when the result of the equation will be more than 100000, the result will be 100000 no matter what.
* Result less than -100000 - when the result of the equation will be less than -100000, the result will be -100000 no matter what.
* Result is a fraction - when the result of the equation is a fraction it will be rounded to the closest integer numbers. (e.g: 0.8 = 1, 0.3 = 0, 0.5 = 1)