
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!