Hello! I am making an attack macro and right now i want to implement function that Agi increase chance to hit for weapon +1% The problem is that different weapons have different hit chance For example sword has 60% chance and here is the macro on a hit [[ {1d100}>[[41]] ]] 1-40 rolls give you miss and 41-100 give you a hit so its 60/100 60% So if i want to add a +10% chance to hit it should give us extra 6 to a roll, but how do i write it, the only way i found is by doing this and it looks UGLY [[ {1d100}>[[41-(60*(1+@{AGI}/100))+60]] ]] That way if we have 10 AGI (10% hit chance) it gives us 1-100> 41-(60*(1.10))+60 1-100> 41-66+60 1-100> 41-6 1-100> 35 1-34 rolls give you miss and 35-100 give you a hit That gives you 66% to hit that is the 10% i wanted to add But the problem is that different weapons have different hit chance (50,60,75,80) and i am afraid that later in the game when i will want to implement some sort of bonus to increase hit chance because i gave one of my players some magic item, i wont be able to make it. so maybe someone has a more beautiful way to go around it?