Skip to content

Commit

Permalink
Update HelpMe.md
Browse files Browse the repository at this point in the history
Add onscalar method of comparison for if.
  • Loading branch information
Renaud G authored Jul 21, 2017
1 parent 91d8d76 commit 15ae7f2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions HelpMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.
Expand Down

0 comments on commit 15ae7f2

Please sign in to comment.