
I've been trying to make a macro which changes the range of a character's attack to match their level. The formula is 10ft + 5ft every 2 character levels, to a maximum of 30ft. I've tried looking at the wiki, but I still can't get it to work. The macro I currently have is Range= [[ 10 + 5 * floor(0.5*(@{selected|Character_Level}/2)) ]] but I can't seem to get it to cap at 30, instead it keeps going to 60 and above, when I adjust the level of the character.