aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2017-07-21 22:22:59 +0200
committerGitHub <noreply@github.com>2017-07-21 22:22:59 +0200
commit15ae7f2af808607afa36363639e7a41b808b577b (patch)
tree8a10633954b9e7cc883b1d221063ea65bfbfc008
parent91d8d763be0f1c2f0eef8bcb4a1b249b52bdb340 (diff)
downloadOneRoll-1.0.0.tar.gz
OneRoll-1.0.0.zip
Update HelpMe.mdv1.0.0
Add onscalar method of comparison for if.
-rw-r--r--HelpMe.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/HelpMe.md b/HelpMe.md
index b7a7db8..150d572 100644
--- a/HelpMe.md
+++ b/HelpMe.md
@@ -181,9 +181,11 @@ There are 3 different methods.
* **On Each** : the condition is tested on each die from the previous part of the command. \[Default method\]
* **All Of Them** : All dice must fit the condition to trigger the true instruction. If all dice do not fit the condition the false instruction is run.
* **One Of Them** : at least one die must fit the condition to trigger the true instruction. If no dices fit the condition the false instruction is run.
+* **On Scalar** : the condition is evaluated on the scalar result of the dice roll.
To switch the operator to act in **All Of Them** method you must add **\*** character as compare method position.
To switch the operator to act in **One Of Them** method you must add **.** character as compare method position.
+To switch the operator to act in **On Scalar** method you must add **:** character as compare method position.
## example:
@@ -205,6 +207,11 @@ if at least one die is equal to 6, then roll another d6 and add it to the result
if all dice are equal to 6, then roll another d6 and add it to the result.
+> 2d10i:[>15]{"Success"}
+
+if the sum of two dice is greater than 15, It displays "Success".
+
+
## Arithmetic
Rolisteam Dice Parser is able to compute primary arithmetic operation such as: +, -, /, * and it also manages those operator priority and it can also manage parenthesis.