
Hello everyone. I wonder if there is how to create an attack macro with these functions in 5e? 1d20 + Mod + Proficiency + or - 20%, 50%, 90% and so on, making players less likely to hit their opponent.
For example, an enemy from 18 BC and the player rolls the die and from 19 and his weapon is a cutting type, but the enemy has + 20% resistance to cutting damage, so he would take 19-20%, so the account would be 19 * 20/100 = 3.8 so his 19 drops to 16, so if you have a way to do this in macro with api or without api, could you help me?
PS: I'm sorry if I have an error I'm not a native