
Ok, I got a fun one, considering it involves ONLY simple math, but seems like it is logically impossible to do with the syntax provided by roll20. Here's what the game mechanic does: A special kind of armor in the game first negates damage AND THEN second it does damage to the armor AND THEN finally the rest goes to the wearer. So, let's take 20 damage and the armor is 12|8 (Negate|Armor Damage). This would become 0 damage to the wearer and 8 to the armor. 13 damage = 00 damage to the wearer and 1 to the armor. 15 damage = 00 damage to the wearer and 3 to the armor. 18 damage = 00 damage to the wearer and 6 to the armor. 21 damage = 01 damage to the wearer and 8 to the armor. 25 damage = 05 damage to the wearer and 8 to the armor. 99 damage = 79 damage to the wearer and 8 to the armor. I should also probably note that the output should be something like "ArmorDmg: ## & PCdmg: ##" I think you see where I am going with this. I've tried writing equations every which way I could possible think of. I've also tried looking up math concepts that may apply (because I thought maybe the way I was thinking about the approach to this math issue is all wrong). No dice (pun intended), I've not found ANY way to write this in roll20. Anyone got any ideas? For reference, the closest I got was: [[[[?{Damage}-[[12]]]]-[[?{Damage}-[[8]]]]]] I figure some of the syntax is probably unnecessary, but I did all that just to keep track of what I was calculating with the equation. Obviously, I was wrong. Anyways, anyone got anything?