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

Bravery formula help

im usually pretty good about hacking other peoples formulas to suit my needs bc im not 100% sure what im doing alot of the time its trial and error buuuut how would i do a formula for something live bravery " Starting at 2nd level, a fighter gains a +1 bonus on  Will  saves against fear. This bonus increases by +1 for every four levels beyond 2nd." i was thinking something like: [[ floor(((@{class-0-level} -2) / 4 ) kl1) ]] but i cant remember how to do the minimum 1 thing or where it should be in the formula something like  kl1 right? i try to minimize the work ppl have to do on their sheets some of my players arent great with remembering bonus or keeping up with them lol
1684692085

Edited 1684699650
vÍnce
Pro
Sheet Author
I'm sure there's a better way but, try this; [[ {@{class-0-level} + d0}>2 + {@{class-0-level} + d0}>6 + {@{class-0-level} + d0}>10 + {@{class-0-level} + d0}>14 + {@{class-0-level} + d0}>18 ]]
1684699778

Edited 1684699807
vÍnce
Pro
Sheet Author
Sorry if my reply was in/out on the forums.  I posted something that wasn't working so I deleted. I think the macro above should work.  Like I said, I'm sure someone will post a much more elegant solution. ;-)
1684702054

Edited 1684702138
Gauss
Forum Champion
This should be what you need: [[1+ floor((@{class-0-level}-2)/4)]] Don't add it until level 2, otherwise you will get a +1 bonus at level 1.  Level 2 = 1 + floor((2-2)/4) = 1 + floor(0/4) = 1+0 = 1 Level 6 = 1 + floor((6-2)/4) = 1 + floor(4/4) = 1+1 = 2 Level 10 = 1+ floor((10-2)/4) = 1 + floor(8/4) = 1+2 = 3 and so on.
1684733266
GiGs
Pro
Sheet Author
API Scripter
I'd modify Gauss's reply slightly. [[floor((@{class-0-level}+2)/4)]] This handles level 1 properly.
Thank you all! Im so dumb course u add 2 not subtract 2 i had it right besides that oooooh math...