diff options
| author | 2025-02-09 06:05:05 +0100 | |
|---|---|---|
| committer | 2025-02-09 06:05:05 +0100 | |
| commit | 6fcb5ca46927f7baab744e117af9eb1ce5b74838 (patch) | |
| tree | 803b14b1315dfed095705d0c417b19c970541535 /HelpMe.md | |
| parent | b8486f92408afa1a0c71d3f62d93f49ac8bebc60 (diff) | |
| download | OneRoll-6fcb5ca46927f7baab744e117af9eb1ce5b74838.tar.gz OneRoll-6fcb5ca46927f7baab744e117af9eb1ce5b74838.zip | |
[Dice] add functions: floor, ceil, round
Diffstat (limited to 'HelpMe.md')
| -rw-r--r-- | HelpMe.md | 37 |
1 files changed, 35 insertions, 2 deletions
@@ -429,7 +429,7 @@ Merge operator is used for gathering several dice rolls from different die type This command merges together the result from the d6 and the d8. Then, it applied the k operator on both result to keep the best. Be careful, this operator merges the instruction list. Instruction reference (such as $1 etc..) won't work after merge operator. -### Spead +### Spread It makes exploded dice as new dice. The operator is trigged by *y*. @@ -439,7 +439,7 @@ The operator is trigged by *y*. ``` First Result: `10 [6, 4], 3, 3, 2` -Result after spead: `6, 4, 3, 2` +Result after spread: `6, 4, 3, 2` Final result: `6+4+3 = 13` ### All the same @@ -657,6 +657,39 @@ Output: Attention! Be careful, `repeat` works badly with multiple instruction commands + +### Floor + +* 15/7 = 2.14286 +* Floor(15/7) = 2 + +The command: + +> 15/7;**floor($1)**;ceil($1);round($1) + +> result: 2.14286,**2**,3,2 + +### Ceil + +* 15/7 = 2.14286 +* Ceil(15/7) = 3 + +The command: + +> 15/7;floor($1);**ceil($1)**;round($1) + +> result: 2.14286,2, **3** ,2 + +### Round + +* 15/7 = 2.14286 +* Round(15/7) = 2 + +The command: + +> 15/7;floor($1);ceil($1);**round($1)** + +> result: 2.14286,2,3, **2** ## The output DiceParser provides features to let you control the command output. |