diff options
| author | 2025-10-25 19:06:37 +0000 | |
|---|---|---|
| committer | 2025-10-25 19:06:37 +0000 | |
| commit | 46cb61e9f90a480b0277816ae8d42e5b0c91fe0c (patch) | |
| tree | 4352cb5e401d70084005b8b91084a085189f1a2a | |
| parent | be9a87d4934e163d9e67a2de7039d9912740d644 (diff) | |
| download | OneRoll-46cb61e9f90a480b0277816ae8d42e5b0c91fe0c.tar.gz OneRoll-46cb61e9f90a480b0277816ae8d42e5b0c91fe0c.zip | |
Update file HelpMe.md
| -rw-r--r-- | HelpMe.md | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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. |