Hi, I'm designing an RPG and I am trying to make a macro for the main roll, but I'm having issues. Here is the rule in my game I am referring to. ROLLING
DICE: The player rolls three ten sided dice (abbreviated to 3d10, “d” being
dice) to determine the outcome of everything from cooking to combat by adding
the sum of the rolled dice together. The roll can be modified by adding or
removing dice based on contextual effects, by how much mastery they have over
the skill they are applying, and it can be modified by core statistics which
add to or subtract from the roll accordingly. Whenever a player wants to
accomplish something, they will be asked to roll to determine if their desired
action plays out the way they want it to. If the sum of the dice is higher or
equal to a target number, the player succeeds. If it is lower, the player
fails.
A success is achieved when the sum of the dice rolled is equal to the Target Number
or, every sum of 5 over the target number. The core idea of this game is to
increase the sum of your roll far over the Target Number, so as to accrue
multiple successes. A failure is missing
the target number, and every 5 under the target number is an additional failure .
For example; if the target number is 15, and you roll 20, you have gained two
successes, one for hitting the Target Number, and one more for being 5 over the
Target Number. Additionally, if a 1 is
rolled on any dice, it counts as a failure, and a 10 is rolled, it counts as a
success. In either of these circumstances, the roll is called a natural success or failure.
If you do not meet the Target Number, and your roll contains a 10, it does
not matter. You still fail. The opposite is true, meeting the TN with a 1 in
the roll does not mean you fail. In short, I need to be able to roll 3d10, check the sum of the dice rolled to see if the SUM hits the target number, and add 1 success whenever the sum of 3d10 is any multiple of 5 over the target number. EG: TN =15 roll 3d10 and get 8, 7,6 (Sum = 21), get a success for hitting 15, get a success for being 5 over 15