Hi! We use a custom D100 system and i would like to find/write a macro roll for it: When a player roll a dice for attacking, the damages will depends on "how much" he success like: My player roll 1d100<70, 33, he success by 70-33 = 37. Now
from this 37 we count how much "5" we can fit in it, the answer is 7
(7*5=35) so his success rate is 7 and it'll add 7 to his damages. So
i'm searching for a macro to do this automatically, like my player
roll "1d100<70" and if the result is 37 the script should output
something like:"37, success rate=7" In simple maths, i would like to do something like: - My player use the macro lire "/rs {SkillLevel} (which is 70 in my previous instance) - My player roll, i store the variable {RollResult} - Maths: {SuccessRate}=ROUNDDOWN(({SkillLevel}-{RollResult})/5) - Output: "Result: {RollResult}, success/fail by {SuccessRate}" Do anybody know a macro that can do something similar or any tutorial that would help me to make this? I already read the "Reusing Rolls" wiki page but i'm not good enough with macro to make mine with this (i don't understand how to use & store variable in a macro). Thanks!