From a014afe5d0e23a8e7175dc0cabfda074cb77a057 Mon Sep 17 00:00:00 2001 From: "Renaud G." Date: Wed, 10 Dec 2014 11:15:41 +0100 Subject: Update HelpMe.md Arithmetic with Dice --- HelpMe.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'HelpMe.md') diff --git a/HelpMe.md b/HelpMe.md index af39a08..40a4f66 100644 --- a/HelpMe.md +++ b/HelpMe.md @@ -91,6 +91,39 @@ Result: 24 Result: 20 +> (3+4)*2 + +Result: 14 + +> 7/2 + +Result: 3.5 + +## + +It is possible to use arithmetic opearation on dice. Please pay attention that the default operation to translate a +dice list to scalar is the sum. So if you roll `3d6`, the result will be a list with 3 values {2, 5 ,1}. Now, we +change a bit the command `3d6+4`: It is resolved like this: {2, 5 ,1} = 8; 8+4 = 12. The final result is 12. + +> 3d6+4 + +Roll 3 dice; sum the result; and add 4 + +> 10D10-2 + +Roll 10 dice; sum the result; and then substract 2 + +> 87-1D20 + +Substract the result of 1 die to 87 + +> (6-4)D10 + +Substract 4 to 6 and then roll two dice. + +> 1D10/2 + +Divide by 2 the result of 1 die. ## Examples -- cgit v1.2.3-70-g09d2