New twists on 3d6 roll under

New twists on 3d6 roll under

Return to topic list

Sun Jul 18 05:36:11 2021   by   Joe
I want to create a simple 3d6 roll under mechanic with a couple of twists.

Twist #1: Doubles, triples etc. counts as a single dice. Which is achieved by programming with the expression different.

Twist #2: Drop any even numbered dice if the roll contains at least 1 odd number is kept from the roll.

For now, that's all  I've gotten to :

sum different 3d6

Can someone help me figuring this out ?
 
Mon Aug 9 12:47:16 2021   by   Torben
I'm not exactly sure what you mean by Twist #2.  Do you mean that, if at least one die is odd, drop all even dice, keeping only the odd?  If so, the following should work.

x := different 3d6;
y := x keep {1,3,5};
if y then sum y else sum x


Explanation: x keep {1,3,5} keeps only the odd elements from x, and if this is non-empty, the sum of the odd elements is returned, otherwise the sum of all (even) elements in x are returned.
 

Return to topic list



New message:
Topic:
Posted by:

Type the values of the dice shown below:

Return to topic list