## d6 System

Simulated dice for role playing games
anlarye
Posts: 9
Joined: Wed Jul 28, 2010 9:08 am
IQ Test: Orange

### d6 System

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

gandreas
Immortal
Posts: 1464
Joined: Wed Feb 04, 2004 6:02 pm
Contact:

### 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:

Code: Select all

``@rolls <- #1d6+@.``
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

Code: Select all

``@rolls <- sort(@rolls).``
This gives us (1,1,1,3,5,8,13). Now we find the ones

Code: Select all

``@ones <- @rolls = 1.``
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

Code: Select all

``@high <- reverse(@ones).``
This is then (0,0,0,0,1,1,1). Take any place where either of those two lists are 1

Code: Select all

``@botch <- @ones \/ @high.``
So @botch is now (1,1,1,0,1,1,1). We want to invert that (take just the 0 values):

Code: Select all

``@good <- @botch = 0.``
And finally @good are the position in the roll where we want to use those values, so use them:

Code: Select all

``@results <- @rolls /\ @good.``
And our answer is the sum of them all:

Code: Select all

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