Roll20, I am attempting to script a parry that a token makes to ward off damage that already received damage by a different macro. To this end, I was thinking of using !tokenmod to adjust bar1 by a roll but only up to a maximum result. Like 1d8(max4). The following will not work because if damage taken is above the perry it will heal the token. Does anyone have an idea as to how to do this? !token-mod {{ --set bar1_value|[[{@{selected|bar1}+floor(1d8+@{Selected|Dexterity_Mod}-?{How much damage was inflicted by the attack|0}),@{selected|bar1|max}+0d0}kl1]] --report all|"{name} ***perries {bar1_value:abschange} hit points of damage!***" gm|"{name} has {bar1_value}/{bar1_max} hp" --ids @{selected|token_id} }} Thank you!!!