Hiyas

In the games area, there are rolls for various versions of the d6 system. I would like to modify the one for the 2nd edition to take advantage of the option we use for "botches".

This is if the Wild Die comes up as a 1, it and the highest die are both removed from the total. I've been looking at the help but not able to figure it out.

Thanks

## d6 System

### Re: d6 System

Haven't gotten to fully test this yet, but I think this will do the trick (and "trick" is the optimal word). I'm also assuming that the d6 uses open ended rolls (IIRC), so let's start by rolling however many dice - for an example, we will have 7 dice, and we keep them a separate values:
Suppose we roll 1,3,1,[6+2],5,1,[6+6+1], this will be (1,3,1,8,5,1,13). We sort them
This gives us (1,1,1,3,5,8,13). Now we find the ones
By using a list <compare> value, we get a 1 for all values equal to that value, and 0 every where else, so we have (1,1,1,0,0,0,0). Now we want the corresponding places on the high end of the list
This is then (0,0,0,0,1,1,1). Take any place where either of those two lists are 1
So @botch is now (1,1,1,0,1,1,1). We want to invert that (take just the 0 values):
And finally @good are the position in the roll where we want to use those values, so use them:
And our answer is the sum of them all:

Code: Select all

`@rolls <- #1d6+@.`

Code: Select all

`@rolls <- sort(@rolls).`

Code: Select all

`@ones <- @rolls = 1.`

Code: Select all

`@high <- reverse(@ones).`

Code: Select all

`@botch <- @ones \/ @high.`

Code: Select all

`@good <- @botch = 0.`

Code: Select all

`@results <- @rolls /\ @good.`

Code: Select all

`"Total:", sum(@results)`

### Who is online

Users browsing this forum: No registered users and 3 guests