From a50fb80de0c1890fe03bccd239a827a8ccb67f68 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 21 Mar 2020 00:15:54 +0100 Subject: update documentation. --- HelpMe.md | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) (limited to 'HelpMe.md') diff --git a/HelpMe.md b/HelpMe.md index dfe68af..35f3899 100644 --- a/HelpMe.md +++ b/HelpMe.md @@ -25,6 +25,7 @@ * [All The same](#allsame) * [Value list](#Value-list) * [Comment (\#)](#comment-) +* [Functions](#Functions) * [Managing the output](#the-output) * [Shortcuts](#shortcuts) * [Final Result](#final-result) @@ -443,6 +444,26 @@ Am I evil ? yes ``` +## Functions + +DiceParser provides function to deal with instructions. +Some functions will come soon (e.g: max, min). It will allows to manage several commands at once. + +### Repeat + +> repeat(1d10,5) + +Output: +``` +2 - Details [2] +8 - Details [8] +3 - Details [3] +1 - Details [1] +10 - Details [10] +``` + +Attention! Be careful, `repeat` works badly with multiple instruction commands + ## The output DiceParser provides features to let you control the command output. @@ -612,9 +633,11 @@ This command means: roll 4 dice and they explode on 10. ### Range -The range is defined as two bounds. You have to use square brackets and the two bounds are separated by `-`. +The range is defined as two bounds. You have to use square brackets and the two bounds are separated by `..`. + +> 4d10c[8..10] -> 4d10c[8-10] +> 1d[-1..8] ### Boolean Condition @@ -865,5 +888,5 @@ All lines must be part of the same messages, so prepare it first. # Bug report and new features -Please fulfill a ticket in our [Bug tracker](https://github.com/Rolisteam/DiceParser/issues) system. +Please fulfill a ticket in our [Bug tracker](https://invent.kde.org/kde/rolisteam-diceparser/issues/new) system. Or contact us on [discord](https://discordapp.com/invite/MrMrQwX) or any [other ways](http://www.rolisteam.org/contact.html) -- cgit v1.2.3-70-g09d2 From 088b2fa45dc2c763187109ec7d77f9eb096e498e Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 28 Mar 2020 01:58:39 +0100 Subject: Add filter operator in the Help. --- HelpMe.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'HelpMe.md') diff --git a/HelpMe.md b/HelpMe.md index 35f3899..75fdf34 100644 --- a/HelpMe.md +++ b/HelpMe.md @@ -18,6 +18,7 @@ * [Backward Jump](#backward-jump) * [Paint](#paint) * [Merge](#merge) + * [Filter](#filter) * [if](#if) * [Group](#group) * [Spread](#spread) @@ -294,6 +295,20 @@ The amount of color is depending of client application of DiceParser. - With Rolisteam, you may set any Qt color's name or set the Hexcode of your color: #ff28AC. - The cli application supports few colors: black, white, blue, red, black, green, yellow. + +### Filter + +Filter operator allows you to ignore some dice result given a validator. + +> 4d6f[!=6] + +Result: +``` + +total: 11 - details[5 2 6 4] +``` +the 6 is ignored. + ### Merge Merge operator is used for gathering several dice rolls from different die type into one dice result and then you may apply any kind of operator. -- cgit v1.2.3-70-g09d2