A function for percentile dice would be handy.
Percentile dice are used by a few systems, namely 40k-based and Basic RPG-based games. Both systems are roll-under using a single d100 as the resolution mechanic. Degrees of Success/Failure (DoF/DoS) are determined by the 10's digit.
Example 1:
[User] % 50
[Rollem] User, d100 => [28] => 28, DoS 2 ##50 - 28 = |22|, drop the singles place, so 2 DoS
Example 2:
[User] % 45
[Rollem] User, d100 => [94] => 94, DoF 4 ##45 - 94 = |49|, drop the singles place, so 4 DoF
Example 3:
[User] % 61
[Rollem] User, d100 => [59] => 59, DoS 0 ##61 - 59 = |2|, drop the singles place, so 0 DoS
A function for percentile dice would be handy. Percentile dice are used by a few systems, namely 40k-based and Basic RPG-based games. Both systems are roll-under using a single d100 as the resolution mechanic. Degrees of Success/Failure (DoF/DoS) are determined by the 10's digit. Example 1: [User] % 50 [Rollem] User, d100 => [28] => 28, DoS 2 ##50 - 28 = |22|, drop the singles place, so 2 DoS Example 2: [User] % 45 [Rollem] User, d100 => [94] => 94, DoF 4 ##45 - 94 = |49|, drop the singles place, so 4 DoF Example 3: [User] % 61 [Rollem] User, d100 => [59] => 59, DoS 0 ##61 - 59 = |2|, drop the singles place, so 0 DoS