lemtzas / Rollem

Rebuilding Rollem in a more readily manageable manner.
MIT License
2 stars 2 forks source link

Special Statgen request #18

Closed Spaaaace closed 10 years ago

Spaaaace commented 10 years ago

Would like to be able to quickly generate stats for a custom system.

Roll is 5 sets of |1d6-1d6| (Absolute value of the equation, so no negatives) all 0s (matching numbers in a set) are rerolled until a non zero value is achieved The total of all dice rolled is added at the end of the stat set.

In Example

2d6,2d6,2d6,2d6,2d6 [3 - 5] = 2, [4 - 4] = 0, [3 - 1] = 2, [1 - 6] = 5, [1 - 2] = 1

Reroll the second set due to a result of 0

2d6 [2 - 4] = 2

Producing the array

[2,2,2,5,1]

and then adding the total of all rolls to the end of the array, producing the final result.

[2,2,2,5,1] 36

lemtzas commented 10 years ago

It is done.

<Lemtzas> !spacegen verbose
<Rollem> Lemtzas requested some stats:
<Rollem> Lemtzas, | 5 - 4 | r1 => 1
<Rollem> Lemtzas, | 3 - 2 |    => 1
<Rollem> Lemtzas, | 6 - 5 |    => 1
<Rollem> Lemtzas, | 1 - 4 |    => 3
<Rollem> Lemtzas, | 1 - 3 |    => 2
<Rollem> Lemtzas, [3, 2, 1, 1, 1]
<Lemtzas> !spacegen
<Rollem> Lemtzas, [5, 3, 1, 1, 1]