Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[REQUEST] Combat Roll Macro/Script for "Armor as Damage Reduction Rule"

1402678867

Edited 1402679089
Hello Roll20 Forum! Me and my group are playing Pathfinder with variant rules from the Ultimate Combat book. For the rule "Armor as Damage Reduction" and the standard rolls we would like to have a script, which automatically. a) Checks the AC against the Attack Roll b) Calculates the damages after reduction c) Subtracts the final damage from the HP bar Quick explanation of the new rule: "Armor as Damage Reduction" With this new Rule a new stat for checking whether you are hit or not is introduced. It is called "Defense" (Defense = 10 + shield bonus + Dexterity modifier) The AC value is just the armor you`re wearing. If you get damage now the AC will absorb the damage as high as your AC. Here is the how we think the script may look like (Sketch) If Attack Roll >= Defense of selected target then HP of selected target - (Damage Roll - AC of selected target) [ However the term "(Damage Roll - AC) must have the value 1 if the result of the term is <= 0 due to the fact that you can`t deal negative damage nor do no damage at all with an attack ] At this point the result from the true damage term (Damage Roll- AC) has to be substracted from the HP Bar of the selected player. Unfortunately we have no experience in scripting nor time / skill to learn it. I hope somebody can help us! We would be very gratefull!
I have already written a script that does the old AC, but could easily be modded. I'll send you a PM.