
I don't know what is wrong with my macro, in fact I am sure it used to work fine years ago when I first made it, but maybe something has changed in Roll20 since then and there is something happening that I am not accounting for.
Anyway, here is the macro in question:
[[floor((@{MR}-(@{Total Damage Received}))/2)+[[floor((@{MR}-(@{Total Damage Received})) / 10) + 1]]d6cs>6sd]]
The macro was made as a token macro, so the token is being selected (it has to be for the macro to be visible) and I have checked the two parameters dozens of times. They are both named correctly and the token is attached to them properly too.