Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

(Pathfinder Official Sheet) floor and character level

Trying to make a macro to no success. I have an ability that is based off my level/2, rounded down. My archetype lets me calculate that ability as if I was 2 levels higher, so level+2/2. I tried using the macro /roll [[floor(@{level}+2/2)]] but no success. I tried other macros but I feel this was the closest I got. Can anyone help me with this? 
1629601020

Edited 1629603058
vÍnce
Pro
Sheet Author
Maybe try wrapping the level+2 portion within parenthesis... [[ floor((@{level}+2)/2) ]]
1629602532
Kraynic
Pro
Sheet Author
I think the +2 needs to be moved outside the floor calculation.  Otherwise you are dividing that +2 in half. [[floor(@{level}/2)+2]]
1629602975
vÍnce
Pro
Sheet Author
Kraynic said: I think the +2 needs to be moved outside the floor calculation.  Otherwise you are dividing that +2 in half. [[floor(@{level}/2)+2]] That's a great point. ;-)
1629603633

Edited 1629603909
Kraynic said: I think the +2 needs to be moved outside the floor calculation.  Otherwise you are dividing that +2 in half. [[floor(@{level}/2)+2]] Unfortunately that would be incorrect because the ability treats my level as 2 higher before being halved, not after. For example, if I was level 4, its the difference between (4+2)/2=3 and (4/2)+2=4. vÍnce  said: Maybe try wrapping the level+2 portion within parenthesis... [[ floor((@{level}+2)/2) ]] However this one did work, I just needed to use "selected" modifier with the @{level}