aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRenaud Guezennec <renaud@rolisteam.org>2025-10-25 19:06:37 +0000
committerRenaud Guezennec <renaud@rolisteam.org>2025-10-25 19:06:37 +0000
commit46cb61e9f90a480b0277816ae8d42e5b0c91fe0c (patch)
tree4352cb5e401d70084005b8b91084a085189f1a2a
parentbe9a87d4934e163d9e67a2de7039d9912740d644 (diff)
downloadOneRoll-46cb61e9f90a480b0277816ae8d42e5b0c91fe0c.tar.gz
OneRoll-46cb61e9f90a480b0277816ae8d42e5b0c91fe0c.zip
Update file HelpMe.md
-rw-r--r--HelpMe.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/HelpMe.md b/HelpMe.md
index a9786da..a3893c1 100644
--- a/HelpMe.md
+++ b/HelpMe.md
@@ -26,6 +26,7 @@
* [Spread](#spread)
* [Unique](#unique)
* [Comment](#comment)
+ * [Transform](#transform)
* [Functions](#functions)
* [Managing the output](#the-output)
* [Shortcuts](#shortcuts)
@@ -634,6 +635,27 @@ So DiceParser can answer the question:
yes
+### Transform
+
+Transform dice accordingly to a condition into another value.
+
+```
+5d10T[>5]{15}
+```
+Roll 5 dice of 10 faces, then replace all values greater than 5 with 15 and the others with 0.
+
+> (6,9,7,5,2) => (15,15,15,5,2)
+
+This operator accepts several conditions: `T[=5]{15}[=6]{16}`
+
+> (6,9,7,5,2) => (16,9,7,15,2)
+
+You can also add a final expression to change the value of all dice which don't fit an condition: `T[>5]{15}{0}`
+
+> (6,9,7,5,2) => (15,15,15,0,0)
+
+
+
## Functions
DiceParser provides function to deal with instructions.